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

:root {
    --primary-color: #d62828;      /* Red */
    --secondary-color: #333333;    /* Dark gray */
    --accent-color: #f8f9fa;       /* Light gray */
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
}

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

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

ul {
    list-style: none;
}

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

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

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-right: 10px;
}

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

/* ===== Header Styles ===== */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

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

.contact-info a {
    margin-left: 20px;
    display: inline-block;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info i {
    margin-left: 5px;
}

.social-links a {
    margin-right: 15px;
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.main-nav {
    padding: 10px 0;
}

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

.logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-right: 30px;
    position: relative;
}


.nav-menu li a {
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

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

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

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 110px; /* Adjust based on your header height */
    color: var(--white);
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    text-align: center;
    padding-top: 20vh;
}

.animated-title {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.animated-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-services {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.9s;
}

.service-tag {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 10px 20px;
    margin: 0 10px;
}

.service-tag i {
    font-size: 20px;
    margin-left: 10px;
    color: var(--primary-color);
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 1.2s;
}

/* Call to Action Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-content .btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
    font-size: 16px;
    padding: 12px 30px;
}

.cta-content .btn:hover {
    background-color: transparent;
    color: var(--white);
}

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

/* ===== Responsive Styles ===== */
@media screen and (max-width: 991px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 60vw;
        height: calc(100vh - 75px);
        background-color: var(--white);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-services {
        flex-direction: column;
    }
    
    .service-tag {
        margin: 5px 0;
    }
    
    .animated-title {
        font-size: 44px;
    }
}

@media screen and (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .hero-content {
        padding-top: 15vh;
    }
    
    .animated-title {
        font-size: 36px;
    }
    
    .animated-subtitle {
        font-size: 18px;
    }
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card:hover .service-icon,
.service-card:hover h3,
.service-card:hover p {
    color: var(--white);
}

.service-card:hover .service-link {
    color: var(--white);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-link {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-link i {
    margin-right: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(-5px);
}

/* ===== Why Choose Us Section ===== */
.why-us-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.why-us-image {
    flex: 1;
    min-width: 300px;
}

.why-us-image img {
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    object-fit: cover;
}

.why-us-features {
    flex: 1;
    min-width: 300px;
}

.feature-box {
    display: flex;
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(214, 40, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature-details h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ===== Projects Section ===== */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition);
    font-family: 'Tajawal', sans-serif;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.project-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-actions {
    display: flex;
    gap: 15px;
}

.project-actions a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-actions a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-category {
    color: #777;
    font-size: 14px;
}

.projects-more {
    text-align: center;
    margin-top: 40px;
}

/* ===== Contact Section ===== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(214, 40, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.contact-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.btn-block {
    width: 100%;
}

.map-container {
    height: 450px;
    margin-top: 80px;
}

/* ===== Footer ===== */
.main-footer {
    background-color: #222;
    color: #f8f9fa;
}

.footer-top {
    padding: 70px 0 40px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .company-name {
    font-size: 24px;
    color: var(--white);
}

.footer-logo .company-slogan {
    font-size: 14px;
    color: #999;
}

.footer-about {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #bbb;
}

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

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

.footer-social a:hover {
    background-color: var(--primary-color);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links li a {
    position: relative;
    padding-right: 15px;
    transition: var(--transition);
}

.footer-links li a::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-right: 20px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #999;
}

/* ===== Animations ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== Additional Responsive Styles ===== */
@media screen and (max-width: 991px) {
    .about-content, 
    .why-us-content,
    .contact-content {
        flex-direction: column;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 767px) {
    .section-title {
        font-size: 30px;
    }
    
    .hero-content {
        padding-top: 15vh;
    }
    
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 575px) {
    .section-title {
        font-size: 26px;
    }
    
    .animated-title {
        font-size: 32px;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        margin: 5px;
        width: 80%;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
}/* ===== Section General Styles ===== */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-divider {
    position: relative;
    height: 2px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto 15px;
}

.section-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #777;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.experience-badge .years {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 500;
}

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

.about-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.about-features .feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.about-features .feature i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 16px;
}

/* ===== Services Section ===== */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    z-index: -1;
    transition: var(--transition);/* 
   Royal Emaar - اعمار الملكية
   Main Stylesheet
*/
}