:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --info-color: #1abc9c;
    --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --gradient-secondary: linear-gradient(135deg, #3498db 0%, #1abc9c 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)), url('https://plus.unsplash.com/premium_photo-1661878265739-da90bc1af051?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTI3fHx0ZWNobm9sb2d5fGVufDB8fDB8fHww');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: 1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
     margin-bottom: 2rem;
    opacity: 0.9;
     color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
     font-size: 1.8rem;
    margin-bottom: 2rem;
     animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.hero-content:hover {
    transform: translateY(-10px);
}

     /* تنسيقات القسم الرئيسي */
    .hero-section {
        padding: 4rem 0;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 0;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        padding-right: 1rem;

    }

    .hero-image {
        margin-top: 2rem;
    }

    .btn-hero {
        padding: 0.75rem 2rem;
        font-size: 1.1rem;
    }

    /* تنسيقات للأجهزة الصغيرة */
    @media (max-width: 768px) {
        .hero-section {
            padding: 2rem 0;
        }

        .hero-title {
            font-size: 2rem;
        }

        .hero-subtitle {
            font-size: 1rem;
        }

        .hero-content {
            text-align: center;
            padding: 1rem 0;
        }

        .hero-image {
            margin-top: 1rem;
        }

        .btn-hero {
            width: 100%;
            margin-bottom: 0.5rem;
        }
    }

    /* تنسيقات قسم المميزات */
    .feature-card {

        background: #fff;
        border-radius: 1rem;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

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

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: #0d6efd;
    }

    .feature-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .feature-text {
        color: #6c757d;
        line-height: 1.6;
    }
.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
    position: relative;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 30px;
}

.btn-hero {
    background: var(--gradient-secondary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn-hero::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: 0.5s;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-hero:hover::before {
    left: 100%;
}
.features-section {
    padding: 150px 0;
     background: linear-gradient(135deg, #f5f7fa 0%, #c7d4df 100%);
    overflow: hidden;
}
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) rotateX(0deg);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-20px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: white;
    font-size: 3rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg);
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.feature-card:hover .feature-icon {
    transform: perspective(1000px) rotateY(360deg) scale(1.1);
    background: var(--gradient-primary);
}

.feature-card:hover .feature-icon::before {
    left: 100%;
}

.feature-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
    position: relative;
    display: inline-block;
}

.feature-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: all 0.5s ease;
}

.feature-card:hover .feature-title {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
}

.feature-card:hover .feature-title::after {
    width: 100%;
}

.feature-text {
    color: #6c757d;
    line-height: 1.9;
    font-size: 1.15rem;
    transition: all 0.5s ease;
    margin-bottom: 30px;
}

.feature-card:hover .feature-text {
    color: #495057;
}

.feature-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    margin-top: auto;
    padding-top: 20px;
    position: relative;
    font-size: 1.1rem;
}

.feature-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transition: all 0.4s ease;
    border-radius: 2px;
}

.feature-link:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.feature-link:hover::after {
    width: 100%;
}

.feature-link i {
    transition: all 0.4s ease;
    font-size: 1.2rem;
}

.feature-link:hover i {
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .feature-card {
        padding: 30px;
        margin: 15px 0;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .feature-title {
        font-size: 1.8rem;
    }

    .feature-text {
        font-size: 1.1rem;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

.btn-hero {
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    color: white;
    text-decoration: none;
}

.portfolio-section {
    padding: 70px 0;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="%23f8f9fa"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.portfolio-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s ease;
}

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

.portfolio-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.portfolio-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-title,
.portfolio-card:hover .portfolio-category {
    transform: translateY(0);
}

.testimonial-section {
    background: var(--gradient-primary);
    padding: 120px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0 0 L100 0 L100 100 L0 100 Z" fill="%232c3e50"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 40px;
    margin: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    padding-right: 30px;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 4rem;
    opacity: 0.2;
}

.testimonial-author {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.testimonial-position {
    opacity: 0.8;
    font-size: 1rem;
}

.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    position: relative;
    overflow: hidden;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0,0,0,0.2);
}

.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
}

.btn-submit {
    background: var(--gradient-secondary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-submit::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: 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .feature-card {
        padding: 30px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .portfolio-img {
        height: 250px;
    }
}

.newsletter-form {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-input {
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    flex: 1;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
    outline: none;
    box-shadow: none;
}

.newsletter-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Scroll Button Styles */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) rotate(180deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    border: none;
    outline: none;
}

.scroll-top:hover {
    transform: translateY(-10px) rotate(0deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    background: var(--gradient-primary);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) rotate(0deg);
}

/* Navigation Links Hover Effect */
.nav-link {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 15px;
    border-radius: 10px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover {
    color: white;
    transform: translateY(-3px);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Section Transition Effects */
section {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Active Navigation Link */
.nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .hero-image {
        transform: none;
    }

    .hero-image:hover {
        transform: scale(1.05);
    }
}

/* Hero Image Animation */
.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transform: perspective(1000px) rotateY(-10deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.3), rgba(26, 188, 156, 0.3));
    z-index: 1;
    opacity: 0;
    transition: all 0.8s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
}

.hero-image:hover::before {
    opacity: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.1);
}

.hero-image:hover img {
    transform: scale(1.2);
}

.portfolio-title-static {
    position: relative;
    color: var(--info-color);
    font-size: 1.35rem;
    font-weight: bold;
    text-align: center;
     border-radius: 10px;
    padding: 8px 0 6px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    width: 80%;
    margin: -30px auto 10px auto;
    z-index: 2;
    transition: color 0.3s, transform 0.3s, background 0.3s, border 0.3s;
}
.portfolio-card:hover .portfolio-title-static {
    color: #ffd700;
    background: rgba(255,255,255,0.28);
    border-color: #ffd700;
    transform: scale(1.05);
}

