:root {
    --primary: #D4AF37; /* Gold */
    --primary-dark: #B8860B;
    --secondary: #1A1A1A; /* Near Black */
    --text: #F5F5F5;
    --text-muted: #A0A0A0;
    --bg: #0A0A0A;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
                url('images/raja_cinta.jpg') no-repeat center center/cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg) 30%, rgba(10, 10, 10, 0.4) 100%);
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Section Title */
.section-title {
    text-align: center;
    padding: 10rem 5% 5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 5% 10rem;
}

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

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-img {
    position: relative;
    height: 450px;
    overflow: hidden;
}

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

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.card:hover .card-overlay {
    opacity: 1;
}

.btn-detail {
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--secondary);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail:hover {
    background: var(--primary);
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Modal */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--secondary);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.modal-img {
    height: 100%;
    min-height: 500px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 3rem;
}

.modal-body h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.modal-body .meta {
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-muted);
}

.modal-content-inner h4 {
    color: var(--primary);
    margin: 25px 0 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
}

.modal-content-inner p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-content-inner ul {
    margin-bottom: 20px;
    list-style: none;
}

.modal-content-inner li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 1.5rem;
    color: #ccc;
}

.modal-content-inner li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

.modal-content-inner blockquote {
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(212, 175, 55, 0.05);
    color: #eee;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
}

.modal-table th, .modal-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.modal-table th {
    color: var(--primary);
    font-weight: 600;
}

.modal-table td {
    color: #ccc;
}

.wa-contact {
    margin: 25px 0;
}

.wa-contact .btn-primary {
    display: inline-block;
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
}

.wa-contact .btn-primary:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    background: #050505;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.social-links {
    margin: 2rem 0;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

.copyright {
    color: #444;
    font-size: 0.8rem;
    margin-top: 3rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .modal-content { grid-template-columns: 1fr; }
    .modal-img { min-height: 300px; height: 300px; }
    .modal-body { padding: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}
