/* css/style.css */

:root {
    /* Color Palette MUHTAMM Redesign — Biru & Amber */
    --color-primary: #075694;          /* MUHTAMM Blue */
    --color-primary-dark: #05406d;
    --color-primary-light: rgba(7, 86, 148, 0.1);
    --color-accent: #F59E0B;           /* Amber Gold – vivid & premium */
    --color-accent-dark: #D97706;      /* Deeper amber on hover */
    --color-accent-light: rgba(245, 158, 11, 0.12);
    --color-text-main: #1E2A3B;        /* Deep navy-black */
    --color-text-light: #52637A;       /* Muted slate */
    --color-bg-light: #EEF3FF;         /* Soft blue-tinted background */
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Mulish', sans-serif;
    --font-body: 'Clarity City', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Transitions */
    --transition: all 0.3s ease-in-out;
    --border-radius: 8px;
    --border-radius-large: 16px;
    --box-shadow: 0 4px 20px rgba(7, 86, 148, 0.07);
    --box-shadow-hover: 0 12px 32px rgba(7, 86, 148, 0.18);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

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

/* Utilities */
.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-padding {
    padding: 80px 0;
}
.py-light {
    background-color: var(--color-bg-light);
}
.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    margin: 15px 0 25px 0;
    border-radius: 2px;
}
.text-center .divider {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(7, 86, 148, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #032d4e 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7, 86, 148, 0.4);
}
.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.btn-outline-light {
    border-color: rgba(255,255,255,0.7);
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}
.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}
header.sticky {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo-text .muhtamm {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    letter-spacing: -1px;
}
.logo-text .lpu {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-top: 2px;
}
header.sticky .logo-text .muhtamm {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-links ul {
    display: flex;
    gap: 25px;
}
.nav-links ul li a {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}
header.sticky .nav-links ul li a {
    color: var(--color-text-main);
}
.nav-links ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    transition: var(--transition);
}
.nav-links ul li a:hover::after, .nav-links ul li a.active::after {
    width: 100%;
}
header.sticky .nav-links ul li a:hover, header.sticky .nav-links ul li a.active {
    color: var(--color-primary);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}
/* Adjust outline button color on transparent header */
header:not(.sticky) .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}
header:not(.sticky) .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
}
header.sticky .mobile-toggle {
    color: var(--color-primary);
}

/* Hero Carousel Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}
.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-content {
    color: var(--color-white);
    max-width: 800px;
    padding-top: 80px; /* Offset for header */
}
.hero-content .badge {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}
.hero-content h1 {
    font-size: 4.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
}
.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}
.carousel-control:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}
.carousel-control.prev { left: 30px; }
.carousel-control.next { right: 30px; }

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active, .dot:hover {
    background: var(--color-accent);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.7);
}

/* Kegiatan Grid */
.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.kegiatan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.kegiatan-card {
    background: var(--color-white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.kegiatan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-bottom-color: var(--color-accent);
}
.kegiatan-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.kegiatan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.kegiatan-card:hover .kegiatan-img img {
    transform: scale(1.05);
}
.kegiatan-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4);
}
.kegiatan-body {
    padding: 25px;
}
.kegiatan-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.kegiatan-body p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.btn-link {
    color: var(--color-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: var(--transition);
}
.btn-link:hover {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent);
    gap: 12px;
}

/* Gallery Masonry */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}
.gallery-item.large {
    grid-row: span 2;
}
.gallery-item.wide {
    grid-column: span 2;
}
@media(max-width: 768px) {
    .gallery-item.wide { grid-column: span 1; }
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 64, 109, 0.92) 0%, rgba(7, 86, 148, 0.4) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.overlay-text h4 {
    color: white;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: var(--transition);
}
.overlay-text p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}
.gallery-item:hover .overlay-text h4,
.gallery-item:hover .overlay-text p {
    transform: translateY(0);
}

/* Laporan Stats */
.stats-bg {
    background: linear-gradient(135deg, #05406d 0%, #075694 50%, #0a6cb8 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.stats-bg::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.07);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item {
    padding: 34px 15px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}
.stat-item:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-4px);
}
.icon-stat {
    font-size: 2.8rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.45));
}
.stat-item h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    font-weight: 800;
}
.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}
.laporan-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}
.laporan-cta p {
    color: rgba(255,255,255,0.8);
}
@media(max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Contact */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.contact-info p {
    color: var(--color-text-light);
    margin-bottom: 30px;
}
.info-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}
.info-list i {
    font-size: 1.5rem;
    color: var(--color-primary);
    background: var(--color-primary-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-primary);
    margin-right: 10px;
    font-size: 1.2rem;
    border: 2px solid transparent;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}
.contact-form-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--color-accent);
}
.contact-form-box h3 {
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-main);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dde3ef;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #fafbff;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(7, 86, 148, 0.1);
    background: var(--color-white);
}

/* Universal RTL/Arabic Inputs Support */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="search"], 
input[type="tel"],
input[type="url"],
textarea {
    unicode-bidi: plaintext;
    text-align: start;
}


/* Footer */
footer {
    background: linear-gradient(180deg, #0a1628 0%, #0f172a 100%);
    color: #8ea4c0;
    padding-top: 80px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    margin-top: 20px;
    line-height: 1.8;
    color: #7a93ae;
}
.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.footer-links ul li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #8ea4c0;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #5e7a96;
}

/* Responsive specific */
@media (max-width: 900px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .nav-links ul li a {
        color: var(--color-text-main);
        font-size: 1.2rem;
    }
    .mobile-toggle {
        display: block;
        z-index: 1001; /* Above mobile menu */
    }
    header.active .mobile-toggle {
        color: var(--color-text-main);
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .stats-grid { grid-template-columns: 1fr; }
}

/* Supergraphic Bridge (wave separator) */
.supergraphic-bridge {
    position: relative;
    padding-bottom: 80px;
}
.supergraphic-bridge::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 90px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23EEF3FF' fill-opacity='1' d='M0,160L80,181.3C160,203,320,245,480,240C640,235,800,181,960,170.7C1120,160,1280,192,1360,208L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none;
}
