/* ============================================================
   KULDEVEE DEVELOPERS - Shared Design System
   Dark Grey & White Luxury Real Estate Theme
   ============================================================ */

:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #252525;
    --bg-card: #2d2d2d;
    --bg-card-hover: #363636;
    --border: rgba(255,255,255,0.10);
    --border-gold: rgba(201,169,110,0.25);
    --white: #ffffff;
    --light: #f5f5f0;
    --muted: #888888;
    --muted-light: #aaaaaa;
    --gold: #c9a96e;
    --gold-light: rgba(201,169,110,0.15);
    --gold-dark: #a8843e;
    --accent: #c9a96e;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --radius: 8px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-card: 0 8px 40px rgba(0,0,0,0.35);
    --shadow-card-hover: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,169,110,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
    font-size: 15px;
    line-height: 1.7;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
.section-gap { padding: 110px 0; }
.section-gap-sm { padding: 70px 0; }
.container-custom { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* TYPOGRAPHY */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}
.section-tag::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.5px;
}
.section-title span, .section-title em { color: var(--white); font-style: italic; }
.section-desc { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 500px; }

/* PRELOADER */
#preloader {
    position: fixed; inset: 0;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-logo { width: 100px; margin: 0 auto 24px; animation: kd-pulse 1.5s ease-in-out infinite; }
.preloader-bar { width: 200px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.preloader-bar::after { content: ''; position: absolute; left: -100%; top: 0; width: 100%; height: 100%; background: var(--white); animation: kd-loadBar 1.5s ease forwards; }
@keyframes kd-loadBar { to { left: 0; } }
@keyframes kd-pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* NAVIGATION */
.navbar-kd {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(18,18,18,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(201,169,110,0.15);
    transition: var(--transition);
}
.navbar-kd.scrolled {
    background: rgba(12,12,12,0.99);
    border-bottom: 1px solid rgba(201,169,110,0.25);
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nav-logo img { height: 48px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    font-size: 13px; font-weight: 500; letter-spacing: 1px;
    text-transform: uppercase; color: rgba(255,255,255,0.65);
    padding: 8px 0; position: relative;
}
.nav-menu > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--white); transition: var(--transition);
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--white); }
.nav-menu > li > a:hover::after, .nav-menu > li > a.active::after { width: 100%; }
.nav-dropdown {
    position: absolute; top: calc(100% + 16px); left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-top: 1px solid rgba(255,255,255,0.4); min-width: 200px; padding: 8px 0;
    opacity: 0; visibility: hidden; transition: var(--transition);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.nav-menu > li:hover .nav-dropdown {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a { display: block; padding: 10px 20px; font-size: 13px; color: var(--muted-light); letter-spacing: 0.5px; }
.nav-dropdown li a:hover { color: var(--white); padding-left: 28px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-social { display: flex; gap: 16px; }
.nav-social a { font-size: 14px; color: var(--muted); transition: var(--transition); }
.nav-social a:hover { color: var(--white); }
.btn-nav {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--bg-primary);
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 12px 26px;
    border-radius: 100px; transition: var(--transition);
    box-shadow: 0 4px 20px rgba(201,169,110,0.15);
}
.btn-nav:hover { background: var(--gold); color: var(--bg-primary); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(201,169,110,0.3); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 1.5px; background: var(--white); transition: var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4.5px); }

/* MOBILE NAV */
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 320px; height: 100vh;
    background: var(--bg-secondary); border-left: 1px solid var(--border);
    z-index: 999; padding: 100px 40px 40px; transition: var(--transition); overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav ul li { border-bottom: 1px solid var(--border); }
.mobile-nav ul li a { display: block; padding: 16px 0; font-size: 16px; color: var(--muted-light); letter-spacing: 0.5px; }
.mobile-nav ul li a:hover { color: var(--white); }
.mobile-nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 998; opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* BUTTONS */
.btn-primary-kd {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--gold); color: #1a1208;
    font-size: 13px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 16px 34px;
    border-radius: 100px; transition: var(--transition);
    border: none; cursor: pointer;
    box-shadow: 0 6px 24px rgba(201,169,110,0.3);
}
.btn-primary-kd:hover {
    background: var(--gold-dark); color: #fff;
    transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201,169,110,0.4);
}
.btn-outline-kd {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--white);
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; padding: 15px 34px;
    border-radius: 100px; border: 1px solid rgba(255,255,255,0.25);
    transition: var(--transition); cursor: pointer;
}
.btn-outline-kd:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.06); }

/* PAGE HERO (INNER PAGES) */
.page-hero {
    padding: 180px 0 80px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; left: 60%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.02) 100%);
    pointer-events: none;
}
.page-hero-tag { display: inline-block; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--muted-light); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 20px; }
.page-hero-title { font-family: var(--font-display); font-size: clamp(48px, 7vw, 90px); font-weight: 500; line-height: 1.0; color: var(--white); letter-spacing: -2px; margin-bottom: 20px; }
.page-hero-title em { color: var(--white); font-style: italic; }
.page-hero-desc { font-size: 16px; color: var(--muted); max-width: 550px; line-height: 1.7; }
.breadcrumb-kd { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.breadcrumb-kd a { font-size: 13px; color: var(--muted); }
.breadcrumb-kd a:hover { color: var(--white); }
.breadcrumb-kd span { font-size: 13px; color: var(--white); }
.breadcrumb-kd i { font-size: 10px; color: var(--muted); }

/* MARQUEE */
.marquee-section { background: var(--white); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 0; animation: kd-marquee 20s linear infinite; white-space: nowrap; }
.marquee-item { display: inline-flex; align-items: center; gap: 20px; padding: 0 40px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--bg-primary); }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bg-primary); opacity: 0.3; }
@keyframes kd-marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* FOOTER */
.footer-section { background: #050505; border-top: 1px solid var(--border); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer-logo img { height: 50px; width: auto; margin-bottom: 20px; }
.footer-about { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; transition: var(--transition); }
.footer-social a:hover { background: var(--white); border-color: var(--white); color: var(--bg-primary); }
.footer-heading { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 24px; position: relative; padding-bottom: 12px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 1px; background: var(--white); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-links a i { font-size: 10px; color: var(--muted-light); opacity: 0.6; }
.footer-newsletter input { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding: 14px 16px; color: var(--white); font-family: var(--font-body); font-size: 13px; outline: none; }
.footer-newsletter input:focus { border-color: rgba(255,255,255,0.4); }
.footer-newsletter button { width: 100%; background: var(--white); color: var(--bg-primary); font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 14px; border: none; border-radius: 0 0 var(--radius) var(--radius); cursor: pointer; transition: var(--transition); }
.footer-newsletter button:hover { background: var(--light); }
.footer-newsletter input::placeholder { color: var(--muted); }
.footer-bottom { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--white); }

/* BACK TO TOP */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 44px; height: 44px; background: var(--white);
    color: var(--bg-primary); border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; cursor: pointer; z-index: 500;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--light); transform: translateY(-3px); }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* WHITE LINE DIVIDER */
.gold-line { width: 60px; height: 1px; background: linear-gradient(to right, var(--white), transparent); margin-bottom: 24px; }

/* SWIPER OVERRIDES */
.swiper-button-next, .swiper-button-prev {
    width: 48px !important; height: 48px !important;
    background: var(--bg-card) !important; border: 1px solid var(--border) !important;
    border-radius: 50% !important; color: var(--white) !important;
    transition: var(--transition) !important;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--white) !important; border-color: var(--white) !important;
    color: var(--bg-primary) !important;
}
.swiper-button-next::after, .swiper-button-prev::after { font-size: 14px !important; font-weight: 700 !important; }
.swiper-pagination-bullet { background: var(--muted) !important; opacity: 1 !important; }
.swiper-pagination-bullet-active { background: var(--white) !important; }

/* PROJECT CARD (Shared) */
.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.proj-card:hover { border-color: rgba(201,169,110,0.25); transform: translateY(-8px); box-shadow: var(--shadow-card-hover); }
.proj-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.7s ease; }
.proj-card:hover .proj-card-img { transform: scale(1.05); }
.proj-card-img-wrap { overflow: hidden; position: relative; }
.proj-card-status {
    position: absolute; top: 16px; left: 16px;
    background: var(--white); color: var(--bg-primary);
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 5px 14px; border-radius: 100px;
}
.proj-card-status.ongoing { background: var(--white); color: var(--bg-primary); }
.proj-card-status.upcoming { background: rgba(255,255,255,0.12); color: var(--white); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.proj-card-status.completed { background: rgba(255,255,255,0.08); color: var(--muted-light); border: 1px solid rgba(255,255,255,0.12); }
.proj-card-body { padding: 28px; }
.proj-card-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.proj-card-location { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.proj-card-location i { color: var(--muted-light); }
.proj-card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.proj-spec-item { background: var(--bg-secondary); padding: 14px 16px; text-align: center; }
.proj-spec-val { font-size: 18px; font-weight: 700; color: var(--white); }
.proj-spec-key { font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.proj-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); }
.proj-card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--white); letter-spacing: 0.5px; }
.proj-card-link i { font-size: 11px; transition: transform 0.3s ease; }
.proj-card:hover .proj-card-link i { transform: translateX(3px); }

/* FORM STYLES */
.form-control-kd {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 18px;
    color: var(--white); font-family: var(--font-body); font-size: 14px;
    outline: none; transition: var(--transition);
}
.form-control-kd::placeholder { color: var(--muted); }
.form-control-kd:focus { border-color: rgba(255,255,255,0.35); background: var(--bg-card-hover); }
textarea.form-control-kd { resize: vertical; min-height: 120px; }
.form-select-kd {
    width: 100%; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 18px; color: var(--white);
    font-family: var(--font-body); font-size: 14px; outline: none; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
    transition: var(--transition);
}
.form-select-kd option { background: var(--bg-card); color: var(--white); }
.form-select-kd:focus { border-color: rgba(255,255,255,0.35); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .container-custom { padding: 0 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 992px) {
    .section-gap { padding: 80px 0; }
    .section-gap-sm { padding: 60px 0; }
    .nav-menu { display: none; } .hamburger { display: flex; }
    .btn-nav { display: none; } .nav-social { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .page-hero { padding: 140px 0 60px; }
    .proj-card-specs { grid-template-columns: repeat(3, 1fr); }
    .nav-logo img { height: 42px; }
}
@media (max-width: 768px) {
    .container-custom { padding: 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .page-hero { padding: 120px 0 50px; }
    .page-hero-title { letter-spacing: -1px; font-size: clamp(36px, 8vw, 70px); }
    .page-hero-desc { font-size: 14px; }
    .proj-card-specs { grid-template-columns: repeat(3, 1fr); }
    .nav-logo img { height: 38px; }
    .section-title { font-size: clamp(30px, 7vw, 52px); }
}
@media (max-width: 480px) {
    .container-custom { padding: 0 16px; }
    .section-gap { padding: 60px 0; }
    .section-gap-sm { padding: 50px 0; }
    .page-hero { padding: 105px 0 44px; }
    .page-hero-title { font-size: clamp(30px, 9vw, 52px); letter-spacing: -0.5px; }
    .page-hero-desc { font-size: 13px; max-width: 100%; }
    .page-hero-tag { font-size: 10px; }
    .breadcrumb-kd { margin-top: 20px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-social { flex-wrap: wrap; }
    .btn-primary-kd { padding: 14px 24px; font-size: 12px; }
    .btn-outline-kd { padding: 13px 22px; font-size: 12px; }
    .section-title { font-size: clamp(26px, 7vw, 40px); }
    .proj-card-specs { grid-template-columns: repeat(3, 1fr); }
    .proj-card-body { padding: 18px 16px; }
    .proj-card-name { font-size: 20px; }
    .nav-logo img { height: 34px; }
    .marquee-item { padding: 0 20px; font-size: 10px; letter-spacing: 2px; }
    .navbar-kd { padding: 12px 0; }
    .navbar-kd.scrolled { padding: 10px 0; }
}
