/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@1,700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Reset and CSS Variables */
:root {
    --primary-green: #1b4332;
    --accent-green: #2d6a4f;
    --light-green: #52b788;
    --btn-bg-beige: #e1e6dd;
    --btn-text-rust: #8d4d3d;
    --bg-dark-teal: #004d40;
    --social-red: #d93025;
    
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-logo: 'Playfair Display', Georgia, serif;
    
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

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

body {
    background-color: #121824;
    color: #1e293b;
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Phone Mockup Frame (Desktop) */
.phone-container-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.phone-mockup {
    width: 410px;
    height: 840px;
    background: #000;
    border-radius: 40px;
    border: 12px solid #222a36;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 4px #1e2530;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Phone Mockup Inner Screen */
.phone-screen {
    flex: 1;
    background: #ffffff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.phone-screen::-webkit-scrollbar {
    width: 4px;
}

.phone-screen::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

/* Phone Mockup Elements */
.phone-status-bar {
    height: 36px;
    background: #000000;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: sans-serif;
    user-select: none;
    z-index: 10;
}

.status-left {
    display: flex;
    align-items: center;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-right svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

/* Chrome Browser Mock Address Bar */
.chrome-address-bar {
    height: 52px;
    background: #1c1c1e;
    border-bottom: 1px solid #2c2c2e;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    color: #ffffff;
    z-index: 10;
}

.chrome-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.chrome-btn:hover {
    opacity: 1;
}

.chrome-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.chrome-url-field {
    flex: 1;
    height: 34px;
    background: #2c2c2e;
    border-radius: 17px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    font-size: 11.5px;
    color: #e5e5ea;
}

.chrome-url-field svg {
    width: 11px;
    height: 11px;
    fill: #a2a2a7;
}

.chrome-url-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}

.chrome-tab-icon {
    width: 18px;
    height: 18px;
    border: 1.5px solid #ffffff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: sans-serif;
}

/* Responsive Overrides: If screen is small, act like a native mobile site and hide mockup wrappers */
@media (max-width: 480px) {
    body {
        background-color: #ffffff;
        display: block;
    }
    
    .phone-container-wrapper {
        padding: 0;
    }
    
    .phone-mockup {
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    
    /* On mobile, we hide the mockup status & address bars to let the real browser render */
    .phone-status-bar,
    .chrome-address-bar {
        display: none;
    }
}


/* ================= WEBSITE STYLING ================= */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-image: url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 20px 60px;
    color: #ffffff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(56, 117, 86, 0.25) 0%, 
        rgba(27, 67, 50, 0.45) 50%, 
        rgba(18, 53, 36, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 20px;
    user-select: none;
}

.logo-visiting {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 2.2rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.logo-jogja {
    font-family: var(--font-logo);
    font-size: 2.7rem;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    margin-left: 2px;
    text-transform: lowercase;
}

.hero-divider {
    width: 45px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    margin: 15px 0;
}

.hero-desc {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

/* Language Buttons Grid */
.lang-btn-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
}

.lang-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.lang-btn-indonesia {
    background-color: rgba(27, 67, 50, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.lang-btn-indonesia:hover {
    background-color: rgba(27, 67, 50, 0.8);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.lang-btn-other {
    background-color: var(--btn-bg-beige);
    color: var(--btn-text-rust);
    border: none;
}

.lang-btn-other:hover {
    background-color: #d5dbd0;
    transform: translateY(-2px);
}

/* Wave Cut Diagonal Shape */
.hero-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 45px;
    z-index: 3;
    fill: #ffffff;
}


/* Main White Section */
.main-content-section {
    background-color: #ffffff;
    padding: 30px 20px;
    flex: 1;
    z-index: 4;
    position: relative;
}

/* Realistic looking decorative label */
.decorative-notice {
    font-size: 0.72rem;
    color: #7f8c8d;
    background-color: #f8f9fa;
    border: 1px dashed #bdc3c7;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Category Cards */
.category-card {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.card-bg-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .card-bg-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.25) 100%);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #ffffff;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    align-self: flex-end;
}

.card-overlay.left-title .card-title {
    align-self: flex-start;
}

.card-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    max-width: 250px;
    font-weight: 500;
}

/* Accordion Panel for scan locations */
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin-bottom 0.3s ease;
    margin-bottom: 0;
}

.accordion-panel.active {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 25px;
    padding: 10px 5px 0;
}

.location-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-green);
    margin-bottom: 10px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 5px;
}

.accordion-location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1.5px solid #edf2f7;
    border-radius: 8px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
}

.location-item-link:hover {
    background: #f0fdf4;
    border-color: var(--light-green);
    color: var(--accent-green);
    transform: translateX(3px);
}

.location-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location-item-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.location-item-addr {
    font-size: 0.7rem;
    color: #64748b;
}

.location-item-arrow {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-green);
}


/* Tourism Information Center Section (Footer Top) */
.tic-section {
    background-color: var(--bg-dark-teal);
    color: #ffffff;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tic-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
}

.tic-divider {
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.tic-text {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-weight: 400;
}

.tic-text strong {
    color: #ffffff;
    font-weight: 600;
}

.tic-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    border: 1.5px solid #ffffff;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 20px;
    border-radius: 4px;
    transition: all 0.25s ease;
    margin-bottom: 30px;
}

.tic-btn:hover {
    background-color: #ffffff;
    color: var(--bg-dark-teal);
}

.tic-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Social Media Grid Section */
.social-section {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    aspect-ratio: 1;
    background-color: var(--social-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s, background-color 0.2s;
}

.social-btn:hover {
    transform: scale(1.08);
    background-color: #c5261d;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Website Simple Footer */
.web-footer {
    background-color: #0c0f16;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    text-align: center;
    padding: 20px;
    line-height: 1.5;
}


/* ================= FORM SCAN/REGISTER GATE STYLING ================= */
.gate-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 20px;
    border: 1px solid #edf2f7;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45, 106, 79, 0.1);
    color: var(--accent-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.gate-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0c0f16;
    margin-bottom: 8px;
}

.gate-subtitle {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.85rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.btn-primary {
    width: 100%;
    height: 48px;
    background-color: var(--accent-green);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-green);
}

/* ================= ARTICLE VIEW STYLING ================= */
.article-card {
    background: #ffffff;
    margin: 15px 15px 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
}

.article-hero {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.article-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.article-sector {
    display: inline-block;
    padding: 3px 8px;
    background: var(--light-green);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.article-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
}

.article-body {
    padding: 20px 18px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0c0f16;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    text-align: justify;
}

.philosophy-box {
    background: #f8fafc;
    border-left: 3px solid var(--accent-green);
    padding: 12px 16px;
    font-size: 0.78rem;
    line-height: 1.5;
    font-style: italic;
    color: #0f172a;
    margin-bottom: 20px;
}

.location-address {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.75rem;
    color: #475569;
    display: flex;
    gap: 8px;
}

.address-icon {
    font-size: 1rem;
}

.rec-section {
    padding: 0 15px;
}

.rec-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #0c0f16;
    margin-bottom: 12px;
    padding-left: 4px;
}

.rec-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform 0.2s;
}

.rec-card:hover {
    transform: translateY(-2px);
    border-color: var(--light-green);
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.rec-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-green);
}

.rec-badge {
    font-size: 0.6rem;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 10px;
    color: #64748b;
    font-weight: 600;
}

.rec-text {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.4;
}

.rec-arrow {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-top: 8px;
}
