
/* Floating WhatsApp Button */
.wa-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem; /* Will be on the left in RTL, right in LTR */
    z-index: 9999;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.wa-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

/* Language Button */
.btn-lang {
    background-color: transparent;
    color: var(--text-light) !important;
    border: 1px solid var(--text-gray) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-lang:hover {
    background-color: var(--primary-color) !important;
    color: #000 !important;
    border-color: var(--primary-color) !important;
}

/* Hide Google Translate Toolbar */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
    display: none !important;
}
body {
    top: 0px !important;
}

/* Fix LTR layout when English is active */
html[dir="ltr"] .navbar .nav-container {
    flex-direction: row;
}
html[dir="ltr"] .wa-float {
    left: auto;
    right: 2rem;
}



/* WhatsApp Button Styles */
.btn-whatsapp {
    background-color: #25d366;
    color: #fff !important;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}
.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

/* Service card WA link */
.wa-service-btn {
    color: #25d366 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.wa-service-btn:hover {
    opacity: 0.8;
    gap: 0.6rem;
}
.wa-icon {
    font-size: 1.1rem;
}


/* Logo image style */
.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
}
/* CSS Reset and Variables */
:root {
    --primary-color: #d4af37; /* Premium Gold */
    --primary-dark: #b5952f;
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-darker: #0b1120;
    --bg-light: #1e293b; /* Slate 800 */
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --font-main: 'Cairo', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.text-center { text-align: center; }
.text-white { color: var(--text-light); }
.text-gray { color: var(--text-gray); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-darker); }

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Headers */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0; /* RTL alignment */
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1600607686527-6fb886090705?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-headline {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.about-features .icon {
    color: var(--primary-color);
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: #000;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.experience-badge .number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-weight: 700;
    line-height: 1.2;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* RTL */
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(212, 175, 55, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Projects Section */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-info p {
    color: var(--text-light);
    margin: 0;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover .project-info h3,
.project-item:hover .project-info p {
    transform: translateY(0);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.contact-form {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px); /* Because it's RTL */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Service Categories Styling */
.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-category {
    background-color: var(--bg-dark);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.category-header h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.mini-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mini-card:hover {
    background-color: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.mini-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-link .arrow {
    transition: var(--transition);
}

.mini-card:hover .btn-link .arrow {
    transform: translateX(-5px);
}


/* Testimonials Styling */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card .stars {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-card .quote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.1);
    position: absolute;
    top: -20px;
    right: -10px;
    font-family: serif;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.avatar.bg-primary {
    background-color: var(--primary-color);
    color: #000;
}

.author-details h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.author-details span {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: block;
}


/* Architectural Design Page Styles */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}
.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-gray);
}
.feature-list .icon {
    color: var(--primary-color);
    margin-top: 3px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.why-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-bottom: 3px solid var(--primary-color);
}
.why-item .why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.why-item h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    color: var(--text-light);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
    border-top: 2px solid var(--primary-color);
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.faq-question {
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--primary-color);
}
.faq-answer {
    padding: 0 0 1.5rem 0;
    color: var(--text-gray);
    display: none;
    line-height: 1.8;
}
.toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .experience-badge {
        bottom: -10px;
        right: -10px;
        padding: 1rem;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-actions .btn {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .contact-form {
        padding: 2rem 1.5rem;
    }
}


/* =========================================
   Mobile Stability Fix
   ========================================= */
html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
    touch-action: pan-y; /* Prevent horizontal swipe shifting */
}

/* Ensure no elements cause horizontal scroll */
.container, .section {
    max-width: 100vw;
    box-sizing: border-box;
}

/* =========================================
   Alternating Service Cards (Beige/Dark)
   ========================================= */
/* Make even mini-cards Beige */
.mini-card:nth-child(even) {
    background-color: #eaddc5; /* Elegant Beige */
    color: #0f172a;
    border-color: #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Text color for even (Beige) cards */
.mini-card:nth-child(even) h4 {
    color: #0f172a; /* Dark slate text */
    font-weight: 800;
}

/* Link color for even cards */
.mini-card:nth-child(even) .btn-link,
.mini-card:nth-child(even) .wa-service-btn {
    color: #0f172a !important;
    font-weight: 700;
}

/* Keep WhatsApp icon green */
.mini-card:nth-child(even) .wa-service-btn .wa-icon {
    color: #25d366 !important;
}

/* Hover effect for Beige cards */
.mini-card:nth-child(even):hover {
    background-color: #f5eedf;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}
