/**
 * City Edge Real Estate Development Landing Page Styles
 */

/* Base Styles and Reset */
:root {
    --white-color: #FFFFFF;
    --black-color: #000000;
    --gold-color: #bfa046;
    --light-gray: #f5f5f5;
    --gray-color: #777777;
    --dark-gray: #333333;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background-color: var(--white-color);
    color: var(--black-color);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.pattern-bg {
    width: 100%;
    height: 100%;
    padding: 60px 0;
}

.gold-text {
    color: var(--gold-color);
}

.gold-line {
    width: 80px;
    height: 3px;
    background-color: var(--gold-color);
    margin: 20px auto;
}

/* Buttons */
.call-btn, .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    margin: 0 5px;
    box-shadow: var(--box-shadow);
}

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

.whatsapp-btn {
    background-color: #bba14a;
    color: var(--white-color);
}

.call-btn:hover, .whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    z-index: 100;
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

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

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

.contact-buttons {
    display: flex;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--black-color);
    margin: 5px 0;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    padding: 20px;
    z-index: 99;
    transform: translateY(-100%);
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    margin-bottom: 20px;
}

.mobile-menu li {
    margin: 15px 0;
}

.mobile-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-contact-buttons a {
    width: 100%;
    text-align: center;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 28px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.stat-box {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 20px;
    flex: 1;
    min-width: 120px;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-color);
    display: block;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 14px;
    color: var(--dark-gray);
}

/* Projects Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    flex: 1;
    min-width: 300px;
    height: 350px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-details {
    flex: 1;
    min-width: 300px;
    padding: 30px;
}

.project-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.project-location {
    font-size: 16px;
    color: var(--gold-color);
    font-weight: 500;
    margin-right: 10px;
}

.project-features {
    margin: 20px 0;
}

.project-features li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 10px;
}

.project-features li::before {
    content: "•";
    color: var(--gold-color);
    font-size: 20px;
    position: absolute;
    right: 0;
    top: -2px;
}

.project-cta {
    margin-top: 20px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 24px;
    color: var(--gold-color);
    margin-bottom: 20px;
}

.feature-check {
    font-size: 28px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.feature-box p {
    font-size: 15px;
    color: var(--gray-color);
}

/* CTA Section */
.cta-container {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--light-gray);
    border-radius: 30px;
}

.benefit-icon {
    font-size: 20px;
    margin-left: 10px;
}

.cta-buttons {
    margin-top: 30px;
}

.cta-buttons .call-btn,
.cta-buttons .whatsapp-btn {
    padding: 15px 40px;
    font-size: 18px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-gray);
    color: var(--white-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-nav,
.footer-projects,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--gold-color);
}

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

.footer-links a:hover {
    color: var(--gold-color);
}

.footer-contact strong {
    display: block;
    margin-bottom: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--gold-color);
}

/* Popup */
.popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.popup-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: var(--transition);
}

.popup-wrapper.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--black-color);
}

.popup-header h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.popup-body p {
    margin-bottom: 20px;
}

.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.popup-buttons .call-btn,
.popup-buttons .whatsapp-btn {
    padding: 10px 20px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Fixed Contact Buttons */
.fixed-contact-buttons {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-button-wrapper {
    position: relative;
}

.fixed-contact-btn {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.call-fixed .icon-circle {
    background-color: var(--black-color);
    color: var(--white-color);
}

.whatsapp-fixed .icon-circle {
    background-color: #bba14a;
    color: var(--white-color);
}

.contact-label {
    position: absolute;
    left: 60px;
    background-color: var(--white-color);
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    white-space: nowrap;
}

.call-fixed .contact-label {
    color: var(--black-color);
}

.whatsapp-fixed .contact-label {
    color: #bba14a;
}

.fixed-contact-btn:hover .contact-label {
    opacity: 1;
    transform: translateX(0);
}

.fixed-contact-btn:hover .icon-circle {
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .project-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .main-nav, .contact-buttons {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .about-content, .cta-container {
        text-align: center;
    }
    
    .gold-line {
        margin: 15px auto;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        height: 250px;
    }
    
    .cta-container {
        padding: 30px;
    }
    
    .footer-links {
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .stat-box {
        min-width: 45%;
    }
    
    .cta-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .popup-content {
        width: 90%;
    }
}