@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #070708;
    --bg-card: #121214;
    --accent: #d4af37;
    --accent-hover: #f1c40f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass: rgba(18, 18, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f1c40f 100%);
    --gradient-dark: linear-gradient(180deg, #070708 0%, #121214 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Section Spacing */
section {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button Premium */
.btn-premium {
    background: var(--gradient-gold);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: 0.5s;
}

/* Desktop Centering Logic */
@media (min-width: 992px) {
    .logo {
        flex: 1;
    }
    .nav-links {
        flex: 2;
        display: flex;
        justify-content: center;
        gap: 40px;
    }
    .nav-extra {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }
}

nav.sticky {
    padding: 15px 10%;
    background: rgba(7, 7, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans';
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

.nav-extra {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--accent);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(7, 7, 8, 0.8), rgba(7, 7, 8, 0.8)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: bgZoom 15s infinite alternate linear;
}

@keyframes bgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

.hero-content p {
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 1; /* Solid white for better readability */
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.visi-misi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    margin-bottom: 20px;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

/* Services */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -30px;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.service-icon {
    display: none;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

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

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 20px;
    border-radius: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item i {
    color: var(--accent);
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

/* Contact Section */
.contact-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch; /* Ensures both boxes have the same height */
}

.map-container {
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-form {
    height: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative; /* Fixed: Absolute icons will now stay inside */
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    padding-left: 50px; /* Added padding to accommodate the icon */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
}

.info-item {
    display: flex;
    gap: 15px;
    align-items: center;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: 0.3s;
    opacity: 1; /* Diubah menjadi terang */
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    opacity: 1; /* Terang kembali saat di-hover */
}

/* Floating Music Button */
.music-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    outline: none;
}

.music-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 20px rgba(212, 175, 55, 0.4);
}

.music-btn i {
    font-size: 20px;
}

/* Music Playing Animation */
.music-btn.playing {
    animation: musicPulse 2s infinite;
}

.music-btn.playing i {
    animation: musicRotate 4s linear infinite;
}

@keyframes musicPulse {
    0% { box-shadow: 0 0 0 0 rgba(212,175,55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212,175,55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55, 0); }
}

@keyframes musicRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    padding: 40px 10% 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: linear-gradient(to top, #000, var(--bg-dark));
}

.footer-content {
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-primary);
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 0;
}

.social-links a svg {
    width: 28px;
    height: 28px;
}

.social-links a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-5px) scale(1.15);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
    color: #64748b;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1100;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(7, 7, 8, 0.9);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1050;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.8rem;
        font-weight: 600;
    }

    .nav-cta {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .visi-misi {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid, .projects-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Fix image overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 10px;
    }

    .hero-btns .btn-premium, 
    .hero-btns .btn-outline {
        width: 100%;
        max-width: 100%;
        padding: 16px 25px;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .contact-header {
        flex-direction: column;
        gap: 20px;
    }

    .info-item {
        justify-content: center;
    }
}
/* Responsive Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 10px;
}
/* WhatsApp Multi-Agent Popup */
.whatsapp-popup {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 320px;
    background: rgba(18, 18, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    z-index: 1001;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-popup.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.whatsapp-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.whatsapp-header h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.whatsapp-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.agent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.agent-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    transform: translateX(5px);
}

.agent-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.agent-info {
    flex: 1;
}

.agent-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
}

.agent-info label {
    display: block;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 480px) {
    .whatsapp-popup {
        width: calc(100% - 50px);
        right: 25px;
        bottom: 85px;
    }
}

@media (max-width: 768px) {
    .project-table th, .project-table td,
    .service-table th, .service-table td {
        padding: 10px;
        font-size: 14px;
    }

    .admin-project-img, .admin-service-img {
        width: 60px;
        height: 45px;
    }

    .service-card {
        padding: 0;
        overflow: hidden;
    }

    .service-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .service-content {
        padding: 20px;
    }

    .actions {
        gap: 8px;
    }

    .actions a {
        padding: 6px;
    }
}

/* Premium Contact Section Upgrade */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: -5px;
    transition: 0.3s;
}

.info-card:hover .info-card-icon {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(5deg);
}

.info-card h4 {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.info-card .content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-card p, .info-card a {
    color: white;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.5;
    transition: 0.3s;
}

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

.contact-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 2px;
}

/* Social Bar Styling */
.social-bar-premium {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.social-item-premium {
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.4s;
    background: rgba(255,255,255,0.02);
}

.social-item-premium:hover {
    color: var(--accent);
    transform: translateY(-5px) rotate(8deg);
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.05); /* Very subtle gold tint */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Form Icon Styles */
.form-group svg, .form-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: 0.3s;
    z-index: 10;
}

.form-group textarea + svg, .form-group textarea + i {
    top: 25px; /* Adjust for textarea */
}

.form-group input:focus + svg, .form-group input:focus + i,
.form-group textarea:focus + svg, .form-group textarea:focus + i {
    color: var(--accent);
}

.contact-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.name-chip {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    color: white;
}

.name-chip:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.name-chip strong {
    font-size: 0.95rem;
    color: white;
    transition: 0.3s;
}

.name-chip:hover strong {
    color: var(--accent);
}

.contact-hint {
    margin-top: 10px;
    padding: 8px;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 8px;
    font-size: 0.72rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

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

/* Map Full Width Styling */
.map-full-width {
    margin-top: 30px;
    width: 100%;
}

/* Nav Social Styling Desktop v6 */
.nav-social-top {
    display: flex;
    gap: 15px;
    margin-right: 20px;
}

.nav-social-top a {
    color: var(--accent);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-social-top a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .nav-social-top {
        display: none !important;
    }
}
