/* ======== Global Styles & Variables ======== */
:root {
    --primary-green: #1E5641; /* اللون الأساسي من شعارك */
    --light-green: #8BC34A;  /* اللون الثانوي من الأوراق */
    --dark-bg: #111;
    --dark-text: #333;
    --light-text: #f5f5f5;
    --bg-light: #f9f9f9;
    --font-family: 'Cairo', sans-serif;
    --container-width: 1100px;
    --section-padding: 80px 0;
}
.no-wrap {
  white-space: nowrap !important; /* يمنع التفاف النص */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--dark-text);
    background-color: #fff;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3rem; font-weight: 900; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-green);
}

.cta-button {
    display: inline-block;
    background-color: var(--light-green);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-green);
    transform: translateY(-3px);
}

/* ======== Header & Navigation ======== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
     box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: top 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-green);
    transition: width 0.3s ease;
}

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

.cta-button-nav {
    background-color: var(--primary-green);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
}
.cta-button-nav:hover {
    background-color: var(--light-green);
}
.cta-button-nav::after { display: none; }


.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* ======== Hero Section ======== */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    background: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ======== Services Section ======== */
#services {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.service-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--light-green);
    margin-bottom: 20px;
}

/* ======== Process Section ======== */
#process {
    padding: var(--section-padding);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.process-step {
    text-align: center;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

/* ======== Portfolio Section ======== */
#portfolio {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 86, 65, 0.9), rgba(30, 86, 65, 0.5));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.portfolio-overlay h3 {
    margin-bottom: 5px;
}
.portfolio-overlay p {
    margin-bottom: 0;
}


/* ======== Contact Section ======== */
#contact {
    padding: var(--section-padding);
}

.contact-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -40px auto 40px auto;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-form {
    flex: 2;
}

.contact-info {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
}

.contact-form button {
    width: 100%;
    border: none;
}

.contact-info h3 {
    color: var(--primary-green);
}
.contact-info p {
    margin-bottom: 15px;
}
.contact-info i {
    color: var(--light-green);
    margin-left: 10px;
}
.social-links a {
    color: var(--dark-text);
    font-size: 1.5rem;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--primary-green);
}


/* ======== Footer ======== */
footer {
    background: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    padding: 20px 0;
}


/* ======== Animations ======== */
.fade-in {
    opacity: 0;
    animation: fadeInAnimation 1s ease-in-out forwards;
}
.hero-content p.fade-in { animation-delay: 0.5s; }
.hero-content a.fade-in { animation-delay: 1s; }

@keyframes fadeInAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======== Responsive Design ======== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%; /* Start off-screen */
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
        font-size: 1.5rem;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}
