/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.15);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOADING SCREEN ===== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary);
}

.nav-brand i {
    color: var(--primary);
    font-size: 1.4rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu li a {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu li a i {
    font-size: 0.85rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.btn-login-nav {
    background: var(--primary) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.btn-login-nav:hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2563eb 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

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

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-item .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* ===== GALLERY ===== */
.gallery {
    padding: 80px 0;
    background: var(--bg-gray);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.gallery-item {
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-media {
    position: relative;
    background: var(--bg-gray);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.media-badge.foto {
    background: rgba(37, 99, 235, 0.85);
}

.media-badge.video {
    background: rgba(239, 68, 68, 0.85);
}

.card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-detail {
    padding: 6px 16px;
    border: none;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-detail:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-data i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 16px;
}

/* ===== ABOUT ===== */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.feature:hover {
    background: rgba(37, 99, 235, 0.06);
    transform: translateX(4px);
}

.feature i {
    font-size: 1.3rem;
    color: var(--primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
}

.feature span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact {
    padding: 80px 0;
    background: var(--bg-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-hover);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2px;
}

.info-item p {
    font-weight: 500;
}

.contact-form {
    background: white;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand i {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.footer-brand span {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--secondary);
    transform: rotate(90deg);
}

#modalBody {
    margin-top: 8px;
}

#modalBody .modal-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-gray);
}

#modalBody .modal-media img,
#modalBody .modal-media video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

#modalBody h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

#modalBody p {
    color: var(--text-light);
    margin-bottom: 12px;
}

#modalBody .modal-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== RESPONSIVE ===== */

/* Tablet & Small Laptop (768px - 1024px) */
@media (max-width: 1024px) {
    .about-content {
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 4px;
        overflow-y: auto;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu li a {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 12px;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-stats {
        gap: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 28px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-brand {
        font-size: 0.9rem;
    }

    .nav-brand i {
        font-size: 1.2rem;
    }

    .nav-menu {
        width: 280px;
        padding: 70px 20px 20px;
    }

    .hero {
        min-height: 90vh;
        padding: 80px 0 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 16px;
    }

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

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

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .gallery {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-body {
        padding: 16px 18px 18px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-desc {
        font-size: 0.9rem;
    }

    .about {
        padding: 50px 0;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .feature i {
        font-size: 1rem;
        width: 28px;
        height: 28px;
    }

    .contact {
        padding: 50px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .info-item {
        padding: 16px 18px;
    }

    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

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

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

    .modal-content {
        padding: 24px 20px;
        margin: 10px;
    }

    #modalBody .modal-media img,
    #modalBody .modal-media video {
        max-height: 250px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 8px;
    }

    .stat-item {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .stat-item .number {
        font-size: 1.3rem;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .feature {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .feature i {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }

    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
}
/* ===== BODY SCROLL LOCK ===== */
body.no-scroll {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);
}

/* ===== VIDEO FALLBACK ===== */
.video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    color: white;
    font-size: 1.1rem;
    gap: 12px;
}

.video-fallback i {
    font-size: 3rem;
    color: var(--primary-light);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== UTILITY ===== */
.animate__animated {
    animation-duration: 0.8s;
}