/* style.css - Riddhi Siddhi Enterprises */

:root {
    --primary: #0B2B5B; /* Royal Blue */
    --secondary: #E21B65; /* Magenta/Pink */
    --accent: #F4F7F6;
    --text-dark: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --font-main: 'Poppins', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    box-shadow: 0 5px 15px rgba(226, 27, 101, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(11, 43, 91, 0.3);
    transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-contact span {
    margin-right: 20px;
}

.top-bar-contact i {
    color: var(--secondary);
    margin-right: 5px;
}

.top-bar-social a {
    margin-left: 15px;
    color: var(--white);
    transition: color 0.3s;
}

.top-bar-social a:hover {
    color: var(--secondary);
}

/* Sticky Header */
.sticky-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-sub {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--secondary);
    display: block;
    line-height: 1;
}

.nav-menu ul {
    display: flex;
}

.nav-menu li {
    margin: 0 10px; /* Reduced from 15px */
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem; /* Added slightly smaller font size */
    color: var(--text-dark);
    transition: color 0.3s;
    position: relative;
    white-space: nowrap; /* Prevent wrapping within item */
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(11, 43, 91, 0.9), rgba(226, 27, 101, 0.7)), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* Glassmorphism Quick Search */
.quick-search {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    margin-top: -50px;
    box-shadow: var(--shadow);
    z-index: 10;
    position: relative;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.search-form input, .search-form select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: var(--font-main);
    font-size: 1rem;
}

/* Properties Grid */
.properties-section {
    padding: 5rem 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.property-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
}

.property-content {
    padding: 20px;
}

.property-content h3 {
    margin-bottom: 10px;
}

.property-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary), #051329);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(226, 27, 101, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Explicit proportions for better alignment */
    gap: 40px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--white) !important; /* Fixed visibility */
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
    color: var(--white) !important; /* Fixed visibility */
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-col p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.trust-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.trust-badges img {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 8px;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.trust-badges img:hover {
    transform: translateY(-5px) rotate(10deg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

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

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

/* Apply animations to cards and sections */
.property-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0; /* Handled by animation */
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }


/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.call-float {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media(max-width: 1100px) {
    .nav-menu {
        display: none; /* Mobile menu logic needed in JS */
    }
    .menu-toggle {
        display: block;
    }
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
    .call-float {
        display: flex;
    }
}
