/* Reset and Base Styles */
:root {
    /* Premium Color Palette */
    --primary-color: #1e40af; /* Deep Royal Blue */
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #64748b; /* Slate Grey */
    --accent-color: #f59e0b; /* Gold/Amber */
    --text-color: #0f172a; /* Dark Navy */
    --bg-color: #f8fafc; /* Very Light Blue-Grey */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation - Glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section - Modern & Dynamic */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1600596542815-27b88e542294?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-shadow: 0 2px 4px rgba(255,255,255,0.5);
    animation: slideUp 0.8s ease-out;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-title {
    margin-bottom: 0.5rem !important;
}

.hero-subtitle {
    margin-bottom: 1.5rem !important;
}

/* Search Box - Bayut Style */
.search-box-bayut {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.search-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    gap: 0.5rem;
    padding: 0.25rem 1rem 0;
}

.search-tab {
    flex: 1;
    max-width: 120px;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: 12px 12px 0 0;
}

.search-tab.active {
    color: #1e40af;
    background: #f8fafc;
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    border-radius: 3px 3px 0 0;
}

.search-tab:hover:not(.active) {
    background: #f8fafc;
    color: #475569;
}

.search-form-bayut {
    padding: 0.75rem 1.25rem;
}

.search-fields-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.5rem;
    align-items: center;
}

.conditional-fields-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.checkbox-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.search-field {
    position: relative;
}

.search-checkbox-field {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    user-select: none;
}

.search-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e40af;
}

.search-checkbox-label span {
    font-size: 0.95rem;
}

.search-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    padding-left: 2rem;
}

.search-select:disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.search-select:hover:not(:disabled) {
    border-color: #0d6efd;
}

.search-select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.search-btn-bayut {
    padding: 0.6rem 1.75rem;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    min-width: 120px;
}

.search-btn-bayut:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.search-btn-bayut svg {
    width: 20px;
    height: 20px;
}

/* Old search form styles (keep for compatibility) */
.search-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    margin: 0 auto;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.form-group label {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    background: white;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px; /* Pill shape */
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(30, 64, 175, 0.4);
    filter: brightness(1.1);
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-header p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Property Grid & Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.property-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.property-content {
    padding: 1.25rem;
}

.property-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.4;
}

.property-location {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.gov-name {
    color: #b45309; /* Dark Amber/Gold */
    font-weight: 700;
}

.district-name {
    color: #64748b;
    font-size: 0.9em;
}

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

.property-specs {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-specs i {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Mobile Responsiveness */
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-premium {
        padding: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-btn-premium {
        width: 100%;
        justify-content: center;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: -2rem !important;
    }
    
    .contact-info-card, 
    .contact-form-card {
        padding: 1.5rem !important;
    }

    /* Developers Grid */
    .developers-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .developer-logo-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .developer-name {
        font-size: 1rem;
    }

    /* Cities Grid */
    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }

    /* Bayut Search Box Responsive */
    .search-fields-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-form-bayut {
        padding: 1.5rem;
    }
    
    .search-btn-bayut {
        width: 100%!;
        justify-content: center;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        padding: 1.5rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }
    
    /* Property Details Page Responsive */
    .property-details-grid {
        grid-template-columns: 1fr !important;
    }
    
    .property-sidebar {
        position: static !important;
        margin-top: 2rem;
    }
    
    .property-image-wrapper {
        height: 300px !important;
    }
    
    /* Hero Section Mobile Spacing */
    /* Hero Section Mobile Spacing */
    /* Hero Section Mobile Spacing */
    .hero-premium {
        padding-top: 140px !important;
        min-height: 800px !important; /* Increased height to fit everything */
        padding-bottom: 4rem !important; /* Add bottom padding */
    }
    
    .hero-content {
        padding-top: 100px !important; /* Slightly reduced to balance */
    }
    
    /* Hero Title Mobile Fix */
    .hero-title {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
        padding: 0 1rem;
        word-wrap: break-word;
        margin-top: 2rem !important; /* Reduced margin since we have padding */
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 1rem;
        margin-bottom: 2rem !important;
    }
    
    /* Add spacing between search box and featured section */
    .featured-properties {
        margin-top: 4rem !important; /* Increased back */
        padding-top: 2rem !important;
    }
    
    .search-box-bayut {
        margin-bottom: 6rem !important; /* Increased margin */
    }

    /* Mobile Hero Background */
    .hero-premium {
        background: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?auto=format&fit=crop&q=80&w=1000') no-repeat center center/cover !important;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.5)) !important; /* Slightly darker on mobile for text readability */
    }
}

/* Premium Hero Section */
.hero-premium {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1600596542815-27b88e542294?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -80px; /* Pull behind header if header is transparent */
    padding-top: 120px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    line-height: 1.6;
}

/* Simple Premium Search */
.search-simple {
    max-width: 700px;
    margin: 0 auto;
}

.search-wrapper {
    background: white;
    padding: 0.75rem;
    border-radius: 100px; /* Pill shape */
    display: flex;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.search-icon {
    padding: 0 1.5rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    border: none;
    font-size: 1.2rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    padding: 0.5rem;
    background: transparent;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-premium {
        height: 70vh;
    }
    
    .search-wrapper {
        flex-direction: column;
        border-radius: 24px;
        padding: 1rem;
        gap: 1rem;
    }
    
    .search-icon {
        display: none;
    }
    
    .search-input {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .search-btn {
        width: 100%;
    }
}

/* Premium Search Box - Modern Design */
.search-premium {
    max-width: 800px;
    margin: 0 auto;
}

.search-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.search-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(147, 51, 234, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none; /* Allow clicking through */
}

.search-container:hover::before,
.search-container:focus-within::before {
    opacity: 1;
}

.search-container:hover,
.search-container:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.search-field-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.search-icon-wrapper {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.search-container:focus-within .search-icon-wrapper {
    transform: scale(1.1);
}

.search-input-premium {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.15rem;
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    padding: 16px 0;
    font-weight: 500;
}

.search-input-premium:focus {
    outline: none;
}

.search-input-premium::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-btn-premium {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search-btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #059669, #047857);
    opacity: 0;
    transition: opacity 0.3s;
}

.search-btn-premium:hover::before {
    opacity: 1;
}

.search-btn-premium:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.search-btn-premium span,
.search-btn-premium svg {
    position: relative;
    z-index: 1;
}

.search-btn-premium svg {
    transition: transform 0.3s;
}

.search-btn-premium:hover svg {
    transform: translateX(4px);
}

/* Search Suggestions */
.search-suggestions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.suggestion-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .search-field-group {
        width: 100%;
    }
    
    .search-btn-premium {
        width: 100%;
        justify-content: center;
    }
    
    .search-suggestions {
        margin-top: 16px;
    }
}
/* Hero Section - Premium Updates */
.hero-premium {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Cities Grid - Professional */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.city-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    aspect-ratio: 4/3;
}

.city-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.city-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.city-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.city-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    color: white;
}

.city-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.city-count {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Developers Grid - Professional & Compact */
.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.developer-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.developer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.developer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.developer-card:hover::before {
    opacity: 1;
}

.developer-logo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border: 3px solid white;
    position: relative;
    z-index: 1;
}

.developer-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.developer-card:hover .developer-logo-img {
    transform: scale(1.15);
}

.developer-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.developer-rating {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #fffbeb;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
}

.developer-projects {
    display: none; /* Keep projects count hidden for compact view */
}

.developer-link {
    display: inline-block;
    color: white;
    background: var(--primary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
    margin-top: 0.5rem;
}

.developer-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;  /* Same as chatbot */
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;  /* Perfect circle */
    text-align: center;
    font-size: 32px;  /* Adjusted for better centering */
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);  /* Match chatbot shadow */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 3s infinite;  /* Match chatbot animation */
}

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

.whatsapp-float i {
    margin-top: 0; /* Fixed centering */
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Ensure it's hidden on desktop if mobile-only class isn't enough */
/* @media (min-width: 769px) {
    .whatsapp-float.mobile-only {
        display: none !important;
    }
} */

/* WhatsApp button on left side */
.whatsapp-float.whatsapp-left {
    right: auto;
    left: 20px;
}

/* Mobile Menu Font Fix */
.nav-menu, .nav-menu a, .mobile-menu, .mobile-menu a {
    font-family: 'Cairo', sans-serif !important;
}
