@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5016;
    --secondary-color: #4a7c59;
    --accent-color: #228B22;
    --button-color: #32CD32;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #2d5016, #4a7c59);
    --gradient-accent: linear-gradient(135deg, #228B22, #32CD32);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--white);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(45, 80, 22, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 5px 25px rgba(45, 80, 22, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.logo::before {
    content: "🌿";
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 80, 22, 0.3);
}

.phone-icon {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span:first-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-text span:last-child {
    font-size: 1.1rem;
    font-weight: 700;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(45, 80, 22, 0.7), rgba(45, 80, 22, 0.7)), 
                url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(34, 139, 34, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(50, 205, 50, 0.1) 0%, transparent 50%);
    animation: backgroundMove 10s ease-in-out infinite;
}

@keyframes backgroundMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(20px) translateY(-20px); }
    50% { transform: translateX(-20px) translateY(20px); }
    75% { transform: translateX(20px) translateY(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 2s ease-out;
    line-height: 1.2;
    color: var(--white);
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), transparent, rgba(255, 255, 255, 0.3));
    border-radius: 22px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.3s both;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
    animation: slideInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(34, 139, 34, 0.4);
}

.phone-icon-btn {
    width: 24px;
    height: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Page Header مع صورة خلفية الهيرو */
.page-header {
    background: linear-gradient(rgba(45, 80, 22, 0.8), rgba(45, 80, 22, 0.8)), 
                url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.3);
    z-index: 1;
}

.page-header > * {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about, .about-content {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 25px;
    border: 3px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: 0 5px 20px rgba(45, 80, 22, 0.2);
    transition: all 0.3s ease;
    animation: slideInRight 1s ease-out;
}

.section-badge::before {
    content: '●';
    margin-left: 10px;
    color: var(--accent-color);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

.section-badge:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.section-badge:hover::before {
    color: var(--white);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-container, .content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-content h2, .text-content h2 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 800;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-content p, .text-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.divider {
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 2rem 0;
    border-radius: 2px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
}

.service-tag {
    background: rgba(45, 80, 22, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out calc(0.9s + var(--delay)) both;
}

.service-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.about-image, .image-content {
    position: relative;
    animation: fadeInRight 1s ease-out 0.8s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-placeholder, .about-image-main {
    width: 100%;
    height: 400px;
    background: url('images/about-garden.webp') center/cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before, .about-image-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.image-placeholder:hover::before, .about-image-main:hover::before {
    transform: translateX(100%);
}

.image-placeholder:hover, .about-image-main:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 20px 50px rgba(45, 80, 22, 0.3);
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    font-weight: 800;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
}

.team-image::before {
    content: '👨‍💼';
    font-size: 2.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.team-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.team-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Achievements Section */
.achievements, .projects-stats {
    padding: 100px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card, .stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover, .stat-item:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-number, .stat-item:hover .stat-number {
    color: var(--white);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label, .stat-item:hover .stat-label {
    color: var(--white);
}

/* Services Section */
.services, .services-page {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(45, 80, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 139, 34, 0.05) 0%, transparent 50%);
}

.services-grid, .services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.service-card, .service-detailed-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out calc(var(--delay)) both;
}

.service-card::before, .service-detailed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::before, .service-detailed-card:hover::before {
    opacity: 1;
}

.service-card:hover, .service-detailed-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 10px;
    object-fit: cover;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}

.service-card h3, .service-detailed-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.service-card:hover h3, .service-detailed-card:hover h3 {
    color: var(--white);
}

.service-card p, .service-detailed-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.service-card:hover p, .service-detailed-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Services Page Specific */
.service-detailed-card {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.1);
}

.service-content {
    flex: 1;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: right;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-btn {
    display: inline-block;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Projects Section */
.projects, .projects-gallery {
    padding: 100px 0;
    background: var(--white);
}

.projects-grid, .projects-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card, .project-item {
    height: 250px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out calc(var(--delay)) both;
}

.project-card img, .project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.project-card:hover img, .project-item:hover img {
    transform: scale(1.05);
}

.project-card:hover, .project-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(255, 0, 0, 0.7);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
}

.testimonial-author h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section مع صورة خلفية الهيرو */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(rgba(45, 80, 22, 0.8), rgba(45, 80, 22, 0.8)), 
                url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.3);
    z-index: 1;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Contact Pages Styles */
.contact {
    padding: 100px 0;
    background: var(--white);
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-methods, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card, .contact-method-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-color);
    animation: fadeInUp 1s ease-out calc(var(--delay)) both;
}

.contact-card:hover, .contact-method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.contact-card .contact-icon, .contact-icon-large {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.contact-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.contact-card h4, .contact-method-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card p, .contact-method-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-dark);
}

.contact-value {
    font-weight: 700;
    color: var(--primary-color);
}

.contact-btn, .contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    color: var(--white);
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

.contact-btn:hover, .contact-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Working Hours */
.working-hours {
    padding: 100px 0;
    background: var(--bg-light);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hours-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.hours-card.emergency {
    background: var(--gradient-primary);
    color: var(--white);
}

.hours-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hours-card.emergency h4 {
    color: var(--white);
}

.hours-list {
    margin-bottom: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.emergency-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.emergency-note p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Service Areas */
.service-areas {
    padding: 100px 0;
    background: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.area-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.area-card:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-5px);
}

.area-card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.area-card:hover h4 {
    color: var(--white);
}

.area-card ul {
    list-style: none;
}

.area-card ul li {
    padding: 0.3rem 0;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.area-card:hover ul li {
    color: rgba(255, 255, 255, 0.9);
}

.areas-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.areas-note p {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(rgba(45, 80, 22, 0.8), rgba(45, 80, 22, 0.8)), 
                url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-button.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: var(--bg-light);
    text-align: center;
}

/* Footer */
footer {
    background: var(--text-dark);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0;
}

footer a {
    color: var(--white);
    text-decoration: none;
}

/* Contact Methods Page */
.contact-methods-page {
    padding: 100px 0;
    background: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        display: flex;
    }

    .contact-info {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 15px 25px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 15px;
    }

    .about-container,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid,
    .services-detailed-grid,
    .projects-grid,
    .projects-masonry,
    .contact-methods,
    .contact-grid,
    .team-grid,
    .stats-grid,
    .testimonials-grid,
    .hours-grid,
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content h2,
    .text-content h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation delays */
.animate-1 { animation-delay: 0.1s; }
.animate-2 { animation-delay: 0.2s; }
.animate-3 { animation-delay: 0.3s; }
.animate-4 { animation-delay: 0.4s; }
.animate-5 { animation-delay: 0.5s; }
.animate-6 { animation-delay: 0.6s; }

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.more-btn-wrapper {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 0 0;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    outline: none;
    padding: 16px 38px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(34,139,34,0.17);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, transform 0.15s;
}

.more-btn:hover {
    background: linear-gradient(135deg, #32CD32, #228B22);
    transform: translateY(-3px) scale(1.04);
}

.more-arrow {
    transition: transform 0.3s;
}

.more-btn:hover .more-arrow {
    transform: translateY(5px) scale(1.2);
}

/* ----------- صور الخدمات الرئيسية --------------- */
.service-card .service-icon,
.service-card img.service-icon {
    width: 100%;
    max-width: 420px;
    height: 280px;
    margin: 0 auto 2rem auto;
    display: block;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(45,80,22,0.13);
    background: #e8ece6;
    transition: transform 0.3s;
}

/* تكبير صورة الخدمة عند التحويم */
.service-card:hover .service-icon {
    transform: scale(1.05);
}

/* --- كروت الخدمات التفصيلية (الخدمات.html عادةً) --- */
.service-detailed-card .service-image {
    width: 100%;
    max-width: 500px;
    height: 320px;
    border-radius: 18px;
    margin-bottom: 2rem;
    overflow: hidden;
    margin-right: auto;
    margin-left: auto;
    background: #e8ece6;
}
.service-detailed-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    transition: transform 0.3s;
}
.service-detailed-card .service-image:hover img {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .service-card .service-icon,
    .service-detailed-card .service-image {
        max-width: 100%;
        height: 200px;
    }
}
@media (max-width: 600px) {
    .service-card .service-icon,
    .service-detailed-card .service-image {
        max-width: 100%;
        height: 140px;
    }
}

/* --------- تأكيد تناسق باقي الكروت والصفحات --------- */
.service-card, .service-detailed-card {
    background: #fff;
    border-radius: 22px;
    padding: 2.3rem 1.2rem 2.2rem 1.2rem;
    text-align: center;
    box-shadow: 0 6px 24px rgba(45,80,22,0.07);
    transition: all 0.3s;
    border-top: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card:hover, .service-detailed-card:hover {
    transform: translateY(-8px) scale(1.024);
    box-shadow: 0 18px 42px rgba(45,80,22,0.13);
}
.service-card h3, .service-detailed-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.9rem 0;
    color: var(--primary-color);
}
.service-card p, .service-detailed-card p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

@media (max-width: 600px) {
    .service-card, .service-detailed-card {
        padding: 1.3rem 0.3rem 1.6rem 0.3rem;
    }
    .service-card h3, .service-detailed-card h3 {
        font-size: 1.05rem;
    }
}

/* --------- تنسيق لزر عرض المزيد إذا استخدمته --------- */
.more-btn-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0 0 0;
}
.more-btn,
a.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    outline: none;
    padding: 16px 38px;
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(34,139,34,0.14);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, transform 0.15s;
    text-decoration: none;
}
.more-btn:hover, a.more-btn:hover {
    background: linear-gradient(135deg, #32CD32, #228B22);
    transform: translateY(-3px) scale(1.04);
}
.more-arrow {
    transition: transform 0.3s;
}
.more-btn:hover .more-arrow,
a.more-btn:hover .more-arrow {
    transform: translateY(5px) scale(1.2);
}
/* ========================= CSS خاص بالمقالات فقط ========================= */

/* تخطيط المقال الرئيسي */
.article-page {
    padding: 60px 0 80px 0;
    background: var(--white);
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-layout {
    display: block;
    width: 100%;
}

.article-text {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.article-sidebar {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-right: 4px solid var(--accent-color);
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1.5rem 0;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.article-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem 0;
    font-weight: 700;
    border-right: 4px solid var(--accent-color);
    padding-right: 1rem;
    line-height: 1.3;
}

.article-text h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    border-right: 2px solid var(--accent-color);
    padding-right: 0.8rem;
}

.article-text p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1.8rem;
    text-align: justify;
}

.article-text strong {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(45, 80, 22, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.article-text a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
    transition: all 0.3s ease;
}

.article-text a:hover {
    color: var(--primary-color);
    border-bottom-style: solid;
    background: rgba(45, 80, 22, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.article-text blockquote {
    background: var(--bg-light);
    border-right: 4px solid var(--accent-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 10px;
    font-style: italic;
    color: var(--text-dark);
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-text blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    right: 20px;
    font-family: serif;
    opacity: 0.3;
}

.article-text ul, .article-text ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.article-text li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.article-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(45,80,22,0.1);
    font-size: 0.95rem;
}

.meta-info-item:last-child {
    border-bottom: none;
}

.meta-info-label {
    color: var(--primary-color);
    font-weight: 600;
}

.meta-info-value {
    color: var(--text-light);
}

.article-sharing {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.article-sharing h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.share-buttons-article {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn-article {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: var(--white);
}

.share-btn-article:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(45,80,22,0.3);
}

.article-keywords {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    border-top: 4px solid var(--accent-color);
}

.article-keywords h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.keywords-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.keyword-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-right: 3px solid var(--accent-color);
}

.keyword-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.keyword-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.keyword-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.article-faq {
    background: var(--white);
    padding: 3rem 0;
    margin: 3rem 0;
}

.article-faq h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-question {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-right: 4px solid var(--accent-color);
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.faq-question p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 1.1rem;
}

.related-articles {
    background: var(--bg-light);
    padding: 3rem 0;
    margin-top: 4rem;
}

.related-articles h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.related-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-content {
    padding: 1.5rem;
}

.related-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.related-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(45, 80, 22, 0.9);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
}

/* تحسينات للهواتف المحمولة */
@media (max-width: 768px) {
    .article-container {
        padding: 0 15px;
    }
    
    .article-title {
        font-size: 2rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .article-text h2 {
        font-size: 1.4rem;
        margin: 2rem 0 1rem 0;
    }
    
    .article-text h3 {
        font-size: 1.2rem;
    }
    
    .article-text p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .keywords-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
