/* Nyasa Properties - Premium Responsive Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #D4AF37;          /* Metallic Gold */
    --primary-light: #f1d57e;
    --secondary: #0A1128;        /* Deep Space Blue */
    --accent: #E31C25;           /* Malawi Red */
    --bg-light: #F8F9FA;
    --bg-dark: #050A18;
    --text-main: #1A1A1A;
    --text-muted: #6C757D;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s ease backwards;
}

/* Navigation */
.navbar {
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1050;
    margin-top: 20px;
    border-radius: 24px;
    width: 95%;
    left: 2.5%;
    right: 2.5%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: var(--transition);
    max-height: 50px;
}

.nav-link {
    color: var(--secondary) !important;
    font-weight: 600;
    margin: 0 12px;
    position: relative;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--primary) !important;
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 17, 40, 0.7), rgba(10, 17, 40, 0.7)), url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-search {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 24px;
    margin-top: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Property Cards */
.property-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.property-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

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

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

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.property-content {
    padding: 25px;
}

.property-price {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.property-meta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Buttons */
.btn-premium {
    background: var(--primary);
    color: #fff;
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-premium:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(10, 17, 40, 0.2);
}

.btn-outline-premium {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-premium:hover {
    background: var(--primary);
    color: #fff;
}

/* Glass Tabs/Sections */
.section-dark {
    background: var(--bg-dark);
    color: #fff;
    padding: 100px 0;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.testimonial-card i {
    color: var(--primary);
    font-size: 3rem;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 30px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: #fff;
}

/* Responsive and Mobile Fixes */
@media (max-width: 991px) {
    .navbar {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(15px);
        padding: 8px 0;
        margin-top: 10px;
    }
    
    .navbar-collapse {
        background: #fff;
        margin-top: 15px;
        padding: 30px;
        border-radius: 24px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
        text-align: center;
    }

    .nav-link {
        margin: 15px 0;
        font-size: 1.2rem;
        color: var(--secondary) !important;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 160px 0 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .btn-premium, .btn-outline-light {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
    }

    .hero-search {
        margin-top: 40px;
        padding: 20px;
    }

    .display-5 {
        font-size: 2.2rem;
    }

    .section-dark {
        padding: 60px 0;
    }

    .glass-card {
        padding: 25px;
    }

    .testimonial-card {
        padding: 25px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 400px) {
    .hero {
        padding-top: 180px;
    }
    .hero-content h1 {
        font-size: 1.6rem !important;
    }
}
