:root {
    --jusah-beige: #F5F5F0;
    --jusah-black: #0A1118;
    --wa-green: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--jusah-beige); color: var(--jusah-black); overflow-x: hidden; }
.serif { font-family: 'Playfair Display', serif; }

.navbar { position: fixed; width: 100%; top: 0; padding: 30px 60px; z-index: 1000; transition: 0.5s; }
.navbar.scrolled { background: rgba(10, 17, 24, 0.95); padding: 15px 60px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; }

.nav-side { flex: 1; display: flex; align-items: center; gap: 40px; color: white; font-size: 11px; letter-spacing: 2px; }
.nav-right { justify-content: flex-end; }
.nav-right a { color: white; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s; }
.nav-right a:hover { border-bottom: 1px solid white; }

.nav-logo img { height: 90px; filter: brightness(0) invert(1); transition: 0.4s; }
.navbar.scrolled .nav-logo img { height: 60px; }

.menu-trigger { display: flex; align-items: center; gap: 15px; cursor: pointer; }
.burger-lines { display: flex; flex-direction: column; gap: 5px; }
.burger-lines span { display: block; width: 28px; height: 2px; background: white; transition: 0.3s; }

.lang-selector { display: flex; gap: 10px; margin-left: 20px; }
.lang-opt { cursor: pointer; opacity: 0.5; transition: 0.3s; }
.lang-opt.active { opacity: 1; font-weight: 600; }

.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 9999; opacity: 0; transition: 0.5s; }
.popup-card { background: white; width: 90%; max-width: 950px; border-radius: 20px; display: flex; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.popup-flex { display: flex; width: 100%; }
.popup-image { width: 45%; }
.popup-image img { width: 100%; height: 100%; object-fit: cover; }
.popup-content { width: 55%; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.p-tag { font-size: 10px; letter-spacing: 3px; color: #888; margin-bottom: 15px; }
.p-serif { font-family: 'Playfair Display', serif; font-size: 2.2rem; line-height: 1.1; margin-bottom: 25px; color: var(--jusah-black); }
.p-desc { font-size: 14px; color: #555; line-height: 1.6; margin-bottom: 35px; }
.p-btn-black { background: var(--jusah-black); color: white; border: none; padding: 22px; width: 100%; font-weight: 600; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.p-btn-black:hover { opacity: 0.9; transform: translateY(-2px); }
.close-popup-x { position: absolute; top: 20px; right: 20px; background: white; border: 1px solid #ddd; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 18px; }

.whatsapp-btn { position: fixed; bottom: 40px; right: 40px; width: 65px; height: 65px; background: var(--wa-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 999; cursor: pointer; }
.whatsapp-btn img { width: 35px; }
.pulse { animation: pulse-animation 2s infinite; }
@keyframes pulse-animation { 0% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0px rgba(37, 211, 102, 0); } }

.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: 10px; font-family: 'Playfair Display', serif; }

.contact-section { padding: 120px 8%; background: var(--jusah-beige); }
.container-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; max-width: 1400px; margin: 0 auto; align-items: center; }
.logo-giant { height: 180px; margin-bottom: 40px; filter: brightness(0); opacity: 0.8; }
.input-wrap { margin-bottom: 25px; border-bottom: 1px solid #ccc; }
.input-wrap label { display: block; font-size: 10px; font-weight: 600; margin-bottom: 5px; color: var(--jusah-black); }
.input-wrap input, .input-wrap textarea { width: 100%; border: none; background: transparent; padding: 10px 0; outline: none; font-size: 16px; color: var(--jusah-black); }
.submit-btn { width: 100%; background: var(--jusah-black); color: white; border: none; padding: 22px; letter-spacing: 5px; cursor: pointer; transition: 0.3s; }

.drawer { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; background: var(--jusah-black); z-index: 2000; transition: 0.5s; display: flex; align-items: center; justify-content: center; }
.drawer.active { left: 0; }
.drawer-links a { display: block; color: white; font-size: clamp(2rem, 5vw, 3.5rem); margin: 30px 0; text-decoration: none; font-family: 'Playfair Display', serif; text-align: center; }
.drawer-close { position: absolute; top: 40px; right: 50px; color: white; font-size: 50px; cursor: pointer; }

@media (max-width: 900px) {
    .popup-flex { flex-direction: column; }
    .popup-image { display: none; }
    .popup-content { width: 100%; padding: 40px; }
    .container-grid { grid-template-columns: 1fr; }
    .navbar { padding: 15px 25px; }
}

@media (max-width: 1024px) {
    .navbar { padding: 20px 30px; }
    .nav-side span, .nav-right a { font-size: 10px; gap: 20px; }
    .container-grid { gap: 40px; padding: 0 5%; }
}

@media (max-width: 768px) {
    .nav-right { display: none; }
    .navbar { padding: 15px 20px; background: rgba(10, 17, 24, 0.9); }
    .nav-logo img { height: 50px !important; }

    /* Hero Text */
    .hero-content h1 { font-size: 1.8rem; letter-spacing: 5px; padding: 0 10px; }
    
    .popup-card { width: 95%; max-height: 90vh; overflow-y: auto; flex-direction: column; }
    .popup-flex { flex-direction: column; }
    .popup-image { width: 100%; height: 200px; }
    .popup-content { width: 100%; padding: 30px 20px; text-align: center; }
    .p-serif { font-size: 1.5rem; }
    .p-desc { font-size: 13px; margin-bottom: 20px; }
    .close-popup-x { top: 10px; right: 10px; background: rgba(255,255,255,0.9); }

    .contact-section { padding: 60px 5%; }
    .container-grid { grid-template-columns: 1fr; text-align: center; }
    .logo-giant { height: 100px; margin: 0 auto 20px; }
    .input-wrap { text-align: left; }
    
    .whatsapp-btn { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    
    .drawer-links a { font-size: 2rem; }
}

@media (max-width: 400px) {
    .p-serif { font-size: 1.3rem; }
    .hero-content h1 { font-size: 1.5rem; }
}

.video-grid-section { background: var(--jusah-black); padding: 5px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.video-item { aspect-ratio: 9/16; overflow: hidden; background: #000; }
.video-item video { width: 100%; height: 100%; object-fit: cover; }

.section-developments { padding: 100px 5%; background-color: #f9f9f9; }
.devs-intro { text-align: center; margin-bottom: 60px; }
.subtitle-gold { font-size: 11px; letter-spacing: 3px; color: #c5a47e; font-weight: 600; margin-bottom: 15px; }
.title-serif { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--jusah-black); margin-bottom: 20px; }
.text-p { max-width: 700px; margin: 0 auto; color: #666; font-size: 14px; line-height: 1.6; }

.devs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1500px; margin: 0 auto; }
.dev-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card-media { position: relative; height: 320px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.dev-card:hover .card-media img { transform: scale(1.1); }

.media-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.overlay-txt { text-align: center; color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 15px; width: 80%; }
.overlay-txt h3 { font-size: 1rem; letter-spacing: 2px; margin-bottom: 5px; }
.overlay-txt p { font-size: 9px; letter-spacing: 2px; }

.card-body { padding: 30px 25px; }
.card-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.location-tag { color: #c5a47e; font-size: 10px; font-weight: 600; display: block; margin-bottom: 15px; letter-spacing: 1px; }
.card-body p { font-size: 13px; color: #777; line-height: 1.6; margin-bottom: 20px; height: 60px; overflow: hidden; }
.link-gold { color: #c5a47e; font-size: 11px; font-weight: 700; text-decoration: none; letter-spacing: 1px; }

@media (max-width: 1024px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .devs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .devs-grid { grid-template-columns: 1fr; }
    .title-serif { font-size: 1.8rem; }
}