@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border: 2px solid var(--bg-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 25, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(7, 25, 20, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    display: inline-block;
    transition: var(--transition-smooth);
}

.logo span {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    box-shadow: 0 0 20px var(--accent-gold-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
    background-color: rgba(223, 177, 91, 0.08);
    transform: translateY(-2px);
}

/* Sections Global */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 16px auto 0 auto;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-size: 16px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(7, 25, 20, 0.95) 0%, rgba(12, 38, 31, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Layanan / Job Desk Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 36px;
    color: var(--accent-gold);
    margin-bottom: 24px;
    display: inline-block;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

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

.about-img-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border-gold);
}

.about-badge-floating {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-badge-floating h4 {
    font-size: 32px;
    color: var(--accent-gold);
}

.about-badge-floating p {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

.about-stats {
    display: flex;
    gap: 30px;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
}

.stat-item h5 {
    font-size: 24px;
    color: var(--accent-gold);
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Keunggulan Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(223, 177, 91, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent-gold);
    margin: 0 auto 20px auto;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Listings Section (Daftar Properti yang Di-upload) */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.listing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.listing-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.listing-img-box {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.listing-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-content {
    padding: 24px;
}

.listing-title {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.listing-location {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.listing-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
}

/* Contact Form Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--accent-gold);
}

.contact-info-list {
    list-style: none;
    margin-top: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    font-size: 20px;
    color: var(--accent-gold);
    margin-top: 3px;
}

.contact-info-text h5 {
    font-size: 16px;
    margin-bottom: 4px;
}

.contact-info-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(223, 177, 91, 0.15);
}

/* Dynamic field with smooth transition */
.dynamic-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    margin-bottom: 0;
}

.dynamic-field.active {
    max-height: 100px;
    opacity: 1;
    margin-bottom: 20px;
}

/* Floating WhatsApp Widget */
.wa-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-mint);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px var(--accent-mint-glow);
    z-index: 999;
    transition: var(--transition-smooth);
    text-decoration: none;
    animation: waPulse 2s infinite;
}

.wa-widget:hover {
    background-color: var(--accent-mint-hover);
    transform: scale(1.1);
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Text Editor & Admin Panel Styles */
.admin-container {
    padding-top: 130px;
    padding-bottom: 100px;
}

.admin-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.admin-listings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-listings-table th, .admin-listings-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-listings-table th {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-weight: 600;
}

.admin-listings-table tr:hover {
    background-color: rgba(248, 25a, 252, 0.02);
}

.btn-delete {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-delete:hover {
    background-color: #dc2626;
}

/* Footer */
footer {
    background-color: #040e0b;
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-decoration: none;
    display: inline-block;
}

.footer-logo span {
    color: var(--accent-gold);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .about-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-container {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-badge-floating {
        right: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
