/* Styles derived from the original index2.html to preserve the same look and feel. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    padding: 16px 0;
    vertical-align: middle;
    transition: all 0.3s ease;
}
/* When scrolled past threshold, header becomes fixed */
header.fixed {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2c5f6f;
    display: flex;
    align-items: center;
    gap: 8px;
}

/*.logo::before {
    content: "🌿";
    font-size: 24px;
}*/

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-bottom: 0;
}
.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover {
    color: #2c5f6f;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: #2c5f6f;
    transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Burger for mobile */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.burger span {
    width: 24px;
    height: 3px;
    background: #2c5f6f;
    border-radius: 2px;
    transition: transform 0.3s;
}
.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    opacity: 0;
}
.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section (home page) */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(44, 95, 111, 0.1) 0%, rgba(61, 139, 158, 0.1) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    background: url('../images/hero.jpg');
	background-size: cover;
	background-position: right center;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.1;
}
.hero-content {
    max-width: 600px;
    z-index: 2;
}
.hero-badge {
    background: #e0f2f1;
    color: #2c5f6f;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
}
.hero h1 .highlight {
    color: #2c5f6f;
}
.hero p {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}
.stat {
    text-align: left;
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c5f6f;
    display: block;
}
.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Section (home page) */
.projects {
    padding: 120px 0;
    background: #fafafa;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}
.section-badge {
    background: #e0f2f1;
    color: #2c5f6f;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}
.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(44, 95, 111, 0.15);
}
.project-image {
    height: 320px;
    background: linear-gradient(135deg, #2c5f6f, #3d8b9e);
    position: relative;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c5f6f;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}
.project-content {
    padding: 32px;
}
.project-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.project-location {
    color: #666;
    font-size: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.project-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}
.project-stat i {
    width: 20px;
    color: #2c5f6f;
}
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.feature-tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
}
.btn-primary {
    background: #2c5f6f;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    text-decoration: none;
}
.btn-primary:hover {
    background: #1e4650;
    transform: translateY(-2px);
}

/* Project page hero */
.project-hero {
    height: 70vh;
    /* Darken the gradient overlay further so brochure text underneath isn't visible */
    /* background: linear-gradient(135deg, rgba(44, 95, 111, 0.3), rgba(61, 139, 158, 0.3)); */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero.jpg') center/cover;
    z-index: -1;
}
.project-hero-content {
    color: white;
    text-align: center;
}
.project-hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 56px;
    margin-bottom: 10px;
}
.project-hero p {
    font-size: 20px;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}
.content-section:nth-child(even) {
    background: #fafafa;
}
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.content-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}
.content-text p {
    font-size: 18px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
}
.content-image, .content-image-2 {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.content-image-2 img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* Gallery */
.gallery {
    padding: 80px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}
.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}
.gallery-item:hover {
    transform: scale(1.02);
}
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 48px 0;
}
.amenity-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.amenity-card:hover {
    transform: translateY(-4px);
}
.amenity-card i {
    font-size: 32px;
    color: #2c5f6f;
    margin-bottom: 16px;
    display: block;
}
.amenity-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.amenity-card p {
    color: #666;
    font-size: 14px;
}

/* Apartment Types */
.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin: 48px 0;
}
.apartment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}
.apartment-card:hover {
    transform: translateY(-8px);
}
/* Overridden: use blueprint background instead of gradient and remove icon */
.apartment-header {
    height: 310px;
    background: url(../images/plan.png) center / contain;
    display: flex;
    align-items: end;
    justify-content: center;
    position: relative;
    color: #ffffff;
    background-color: #fff;
    border-bottom: 1px solid #ededed;
	background-repeat: no-repeat;
}
.apartment-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increase overlay opacity on blueprint header to better match original gradient style */
    /*background: rgba(44, 95, 111, 0.6);
    backdrop-filter: blur(1px);*/
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.apartment-type {
    background: #2c5f6f;
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    margin-bottom: 20px;
}
.apartment-info {
    padding: 32px 24px;
}
.apartment-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}
.apartment-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.spec {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}
.spec-value {
    font-size: 18px;
    font-weight: 700;
    color: #2c5f6f;
    display: block;
}
.spec-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.apartment-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.apartment-features .feature {
    background: #e0f2f1;
    color: #2c5f6f;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

/* Contact Form */
.contact-section {
    background: linear-gradient(135deg, #2c5f6f, #3d8b9e);
    padding: 80px 0;
    color: white;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.contact-info h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 46px;
}
.contact-info p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 24px;
    color: #1a1a1a;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: white;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5f6f;
}
.form-group textarea {
    resize: vertical;
}
.btn-primary[type="submit"] {
    width: 100%;
}

/* Floating Buttons */
.whatsapp-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    z-index: 1000;
}
.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
    color: white;
}
.phone-btn {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 50px;
    height: 50px;
    background: #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
	font-size: 22px;
    z-index: 1000;
    animation: blink 1.5s infinite;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
    transition: opacity 0.3s;
	text-decoration: none;
}
.phone-btn:hover {
    opacity: 0.8;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Popup Modal */
#popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}
#popup-modal.active {
    display: flex;
}
#popup-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	height: 90%;
}
#popup-modal img,
#popup-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
#popup-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    z-index: 1;
    line-height: 17px;
}

/* Page-specific hero backgrounds using brochure images */
.mansouria-page .project-hero::before {
    background: url('../images/mansouria-hero.jpg') center/cover;
}
.ainsebaa-page .project-hero::before {
    background: url('../images/ainsbaa-hero.jpg') center/cover;
}
.mansouria-page .project-hero-content h1,
.mansouria-page .project-hero-content p,
.ainsebaa-page .project-hero-content h1,
.ainsebaa-page .project-hero-content p {
    color: #ffffff;
}

/* New footer design overriding original dark footer */
footer {
    background: #2c5f6f;
    color: #ffffff;
    padding: 60px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-section h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #ffffff;
}
.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.4;
    text-decoration: none;
    display: block;
}
.footer-section a:hover {
    color: #ffffff;
}
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .apartment-specs {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 36px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .project-hero h1 {
        font-size: 36px;
        line-height: 40px;
    }
    .content-text h2 {
        font-size: 28px;
    }
    /* Show burger and hide nav links */
    .burger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 240px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 32px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.05);
        z-index: 1050;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin-bottom: 0px;
    }
    .nav-links a {
        font-size: 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.footer-bottom a {
	color: #fff;
  	text-decoration: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #2c5f6f;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e4650;
}