/* =====================================================
   Yayasan Pawiyatan Agung Pancasilacitta
   Professional • Modern • Futuristic Design
   ===================================================== */

:root {
    --primary: #0a1628;
    --primary-light: #132f4c;
    --accent: #00d4ff;
    --accent-2: #7b61ff;
    --accent-3: #00ffa3;
    --gold: #ffd700;
    --text: #e8f1ff;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-1: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0a1628 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff, #7b61ff);
    --gradient-card: linear-gradient(145deg, rgba(19, 47, 76, 0.8), rgba(10, 22, 40, 0.9));
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

.display-hero {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navbar ===== */
.navbar-futuristic {
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    z-index: 1050;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.navbar-futuristic.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #0a1628 !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-brand .brand-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

/* Logo yayasan — ukuran proporsional dengan menu */
.navbar-brand .brand-logo {
    height: 38px;
    width: 38px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .navbar-brand .brand-logo {
        height: 32px;
        width: 32px;
    }
    .navbar-brand span {
        font-size: 1.05rem;
    }
}

.nav-link {
    color: #475569 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #0a1628 !important;
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.navbar-futuristic .navbar-toggler i {
    color: #0a1628 !important;
}

.btn-glow {
    background: var(--gradient-accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.45);
    color: #fff;
}

.btn-outline-glow {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: auto;
    display: block;
    position: relative;
    background: var(--gradient-1);
    overflow: hidden;
    padding-top: 90px;
    padding-bottom: 40px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Glass Cards ===== */
.glass-card {
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.3);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    background: var(--gradient-accent);
    color: #fff;
}

.card-icon.icon-success { background: linear-gradient(135deg, #00ffa3, #00d4ff); }
.card-icon.icon-warning { background: linear-gradient(135deg, #ffd700, #ff8c00); }
.card-icon.icon-info { background: linear-gradient(135deg, #7b61ff, #00d4ff); }

/* ===== Section Styles ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

/* ===== Visi Misi ===== */
.visi-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 97, 255, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
}

.misi-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ===== Gallery ===== */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== Contact Form ===== */
.form-control-futuristic {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    padding: 0.85rem 1.2rem;
    transition: all 0.3s;
}

.form-control-futuristic:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    color: #fff;
}

.form-control-futuristic::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* ===== Footer ===== */
.footer {
    background: #060d18;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s;
}

.footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
    padding-top: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    margin-right: 0.5rem;
}

.social-icon:hover {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== Motto Banner ===== */
.motto-banner {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 97, 255, 0.08));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 4rem 0;
    text-align: center;
}

.motto-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    font-style: italic;
    color: #fff;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

/* ===== Page Header ===== */
.page-header {
    padding: 140px 0 80px;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(0, 212, 255, 0.1), transparent 70%);
}

/* ===== Alert ===== */
.alert-futuristic {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    color: var(--accent);
    padding: 1rem 1.5rem;
}

.alert-success-futuristic {
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.3);
    color: var(--accent-3);
}

/* ===== WhatsApp Float ===== */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* ===== Responsive — Tablet & Mobile ===== */
@media (max-width: 991.98px) {
    .navbar-futuristic {
        padding: 0.5rem 0;
    }

    .navbar-futuristic .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        margin-top: 0.75rem;
        padding: 0.75rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .navbar-futuristic .navbar-nav {
        gap: 0.25rem !important;
    }

    .navbar-futuristic .nav-link {
        padding: 0.7rem 1rem !important;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .navbar-futuristic .nav-link.active::after {
        display: none;
    }

    .navbar-futuristic .nav-item.ms-lg-2 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    .navbar-futuristic .nav-item.ms-lg-2 .btn-glow {
        width: 100%;
        text-align: center;
        display: block;
        padding: 0.7rem 1.2rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.4rem;
        border: none !important;
        box-shadow: none !important;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-stats {
        gap: 1.2rem;
        justify-content: flex-start;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .visi-box {
        padding: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .page-header {
        padding: 110px 0 50px;
    }

    .page-header .display-hero {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    .glass-card {
        padding: 1.5rem;
    }

    .wa-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 16px;
        font-size: 1.5rem;
    }

    .footer {
        padding: 40px 0 24px;
        text-align: center;
    }

    .footer .d-flex {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .motto-banner {
        padding: 2.5rem 0;
    }

    .btn-glow,
    .btn-outline-glow {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        gap: 8px !important;
        max-width: calc(100% - 48px);
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        min-width: 70px;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .misi-number {
        font-size: 2.2rem;
    }

    .page-header {
        padding: 100px 0 40px;
    }
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bootstrap overrides */
.bg-dark-custom {
    background: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}


/* ===== Video Section ===== */
.video-section {
    background: rgba(0, 0, 0, 0.15);
}

.video-card {
    border-radius: 24px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), var(--shadow-glow);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.site-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #0a1628;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.75) 100%);
    transition: opacity 0.35s ease, visibility 0.35s ease;
    cursor: pointer;
    z-index: 2;
}

.video-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    padding-left: 4px; /* optical center for play icon */
}

.video-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 55px rgba(0, 212, 255, 0.65);
}

.video-overlay-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.video-meta {
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 22, 40, 0.6);
}

.video-meta h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

@media (max-width: 576px) {
    .video-play-btn {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }
}


/* ===== Hero Video Card (di atas konten hero) ===== */
.hero-video-card {
    border-radius: 24px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), var(--shadow-glow);
    max-width: 480px;   /* lebih kecil agar seluruh frame terlihat */
    margin-left: auto;
    margin-right: auto;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 fixed */
    max-height: 270px;
    background: #0a1628;
    overflow: hidden;
}

.hero-video-wrapper .site-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #0a1628;
}

.hero-video-caption {
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 22, 40, 0.75);
    padding: 0.75rem 1rem !important;
}

@media (max-width: 576px) {
    .hero-video-card {
        border-radius: 20px !important;
    }
}


/* ===== Video Gallery (1 jendela utama + thumbnail) ===== */
.page-video-card {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), var(--shadow-glow);
    overflow: visible !important;
}

/* Jendela utama – tampilkan full frame, tidak terpotong */
.vg-main-wrap {
    position: relative;
    width: 100%;
    background: #000;
    line-height: 0;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.vg-main-video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 420px;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000;
}

.page-video-meta {
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 22, 40, 0.75);
    border-radius: 0 0 24px 24px;
}

.page-video-meta h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Grid thumbnail – pola Code Boxx */
.vg-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 960px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .vg-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .vg-gallery {
        grid-template-columns: 1fr;
    }
}

.vg-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--gradient-card);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.vg-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(0, 212, 255, 0.35);
}

.vg-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.vg-item video {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #0a1628;
    pointer-events: none;
}

.vg-caption {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(10, 22, 40, 0.85);
}

.vg-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.9;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.vg-item:hover .vg-play-icon,
.vg-item.active .vg-play-icon {
    opacity: 1;
    transform: translate(-50%, -70%) scale(1.08);
}

@media (max-width: 576px) {
    .vg-main-video {
        max-height: 260px;
    }
    .vg-item video {
        height: 120px;
    }
}
