/* التنسيقات الأساسية */
:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --font-family: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-family);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

input, textarea, button {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
}

.service-card h3,
.product-card h3 {
    font-family: var(--font-family);
    font-weight: 600;
}

.service-card p,
.product-card p {
    font-family: var(--font-family);
    font-weight: 400;
}

.navbar .nav-links a {
    font-family: var(--font-family);
    font-weight: 500;
}

.hero h1 {
    font-family: var(--font-family);
    font-weight: 800;
}

.hero h2 {
    font-family: var(--font-family);
    font-weight: 600;
}

.cta-button {
    font-family: var(--font-family);
    font-weight: 500;
}

.footer {
    font-family: var(--font-family);
}

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

/* القائمة العلوية */
.navbar {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: fit-content;
    margin-left: 1rem;
}

.company-name {
    display: flex;
    flex-direction: column;
}

.company-name h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.company-name span {
    color: var(--dark-color);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    list-style: none;
    position: relative;
    z-index: 2;
}

.nav-links li {
    margin-right: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* القسم الرئيسي */
.hero {
    height: 110vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-background .slide.active {
    opacity: 1;
}

.hero-background .slide picture {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-background .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-background .slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-background .slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-bg-1.jpg');
}

.hero-background .slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-bg-2.jpg');
}

.hero-background .slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-bg-3.jpg');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(46, 204, 113, 0.15), 
        rgba(39, 174, 96, 0.15), 
        rgba(44, 62, 80, 0.15));
    animation: gradientAnimation 15s ease infinite;
    background-size: 400% 400%;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 0;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sustainability-icon {
    color: var(--primary-color);
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

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

/* قسم من نحن */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

/* القسم الخدمات */
.services-section {
    padding: 5rem 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* قسم المنتجات */
.products-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.products-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.products-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.wrapper {
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    padding: 0 40px;
}

.wrapper i {
    top: 50%;
    height: 44px;
    width: 44px;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 1.15rem;
    position: absolute;
    text-align: center;
    line-height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: transform 0.1s linear;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    z-index: 2;
}

.wrapper i:active {
    transform: translateY(-50%) scale(0.9);
}

.wrapper i:hover {
    background: var(--primary-color);
    color: #fff;
}

.wrapper i:first-child {
    right: -22px;
}

.wrapper i:last-child {
    left: -22px;
}

.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    border-radius: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel :where(.card, .img) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card.card {
    scroll-snap-align: start;
    height: 100%;
    list-style: none;
    background: #fff;
    cursor: pointer;
    padding-bottom: 15px;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.product-card.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

@media screen and (max-width: 900px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;
    }
    
    .wrapper i {
        display: none;
    }
}

/* قسم اتصل بنا */
.contact-section {
    padding: 5rem 0;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links a {
    color: #fff;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

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

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .navbar .container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem;
    }

    .logo a {
        flex-direction: column;
    }

    .logo img {
        margin: 0 0 0.5rem 0;
    }

    .hero {
        height: 100vh;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero .container {
        padding: 0 1rem;
        margin-top: 0;
    }

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

    .hero h2 {
        font-size: 1.2rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-background .slide:nth-child(1) {
        background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-mobile-1.jpg');
    }

    .hero-background .slide:nth-child(2) {
        background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-mobile-2.jpg');
    }

    .hero-background .slide:nth-child(3) {
        background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/hero-mobile-3.jpg');
    }

    .hero-background .slide {
        background-position: center center;
        background-size: cover;
    }

    .hero {
        height: 100vh;
    }

    .hero .container {
        padding-top: 25vh;
    }

    .services-section,
    .products-section {
        text-align: center;
        padding: 3rem 0;
    }

    .services-section h2,
    .products-section h2 {
        font-size: 1.8rem;
        margin: 0 auto 2rem;
        width: fit-content;
    }

    .services-section h2::after,
    .products-section h2::after {
        width: 60px;
    }

    .services-row,
    .products-row {
        justify-content: center;
    }

    .service-card.card,
    .product-card.card {
        margin: 0 auto;
    }

    .carousel {
        margin: 0 auto;
    }

    .carousel-inner {
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        margin-top: 100px;
    }

    .about-section,
    .services-section,
    .products-section,
    .contact-section {
        padding: 3rem 0;
    }

    .product-image {
        height: 180px;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }
}

/* تحسينات إضافية للتجربة على الموبايل */
@media (hover: none) {
    .service-card:hover,
    .product-card:hover {
        transform: none;
    }

    .product-card:hover .product-image img {
        transform: none;
    }

    .nav-links a:active,
    .cta-button:active,
    .submit-button:active {
        opacity: 0.7;
    }
}

/* تحسين قابلية النقر على الأزرار */
.cta-button,
.submit-button,
.nav-links a {
    padding: 0.8rem 1.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* تحسين المسافات في النموذج */
.form-group input,
.form-group textarea {
    min-height: 44px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero .container {
        padding-top: 20vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero .container {
        padding-top: 15vh;
    }

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

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        left: 1rem;
        top: 1rem;
        z-index: 1000;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        margin: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem;
        text-align: center;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background-color: var(--primary-color);
        color: white;
    }

    .navbar .container {
        justify-content: center;
        padding: 0.5rem;
    }

    .logo {
        margin: 0 auto;
    }
}

/* تحسينات الفوتر للموبايل */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 1rem 1rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-section {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        margin-bottom: 1rem;
    }

    .footer-section h3 {
        color: var(--primary-color);
        font-size: 1.3rem;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

    .footer-section h3::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
    }

    .footer-section p {
        margin: 0.5rem 0;
        font-size: 1rem;
        line-height: 1.8;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        margin: 0;
        transition: all 0.3s ease;
    }

    .social-links a:hover {
        background: var(--primary-color);
        transform: translateY(-3px);
    }

    .social-links i {
        font-size: 1.2rem;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-bottom p {
        font-size: 0.9rem;
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
        gap: 2rem;
        padding: 0 1rem;
    }

    .product-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInProduct 0.6s ease forwards;
        background: #fff;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        position: relative;
        overflow: hidden;
        background: #fff;
    }

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        padding: 1rem;
        transform: scale(0.95);
        transition: transform 0.3s ease;
    }

    .product-card:hover .product-image img {
        transform: scale(1);
    }

    .product-info {
        padding: 1.5rem;
        text-align: center;
        background: #fff;
    }

    .product-card h3 {
        font-size: 1.3rem;
        color: var(--dark-color);
        margin-bottom: 0.5rem;
        position: relative;
        padding-bottom: 0.5rem;
    }

    .product-card h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
        transition: width 0.3s ease;
    }

    .product-card:hover h3::after {
        width: 80px;
    }

    .product-card p {
        color: var(--text-color);
        font-size: 1rem;
        line-height: 1.6;
        margin-top: 0.5rem;
    }
}

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

/* تأخير ظهور البطاقات بشكل متتالي */
@media (max-width: 768px) {
    .product-card:nth-child(1) { animation-delay: 0.1s; }
    .product-card:nth-child(2) { animation-delay: 0.2s; }
    .product-card:nth-child(3) { animation-delay: 0.3s; }
    .product-card:nth-child(4) { animation-delay: 0.4s; }
}

@media (max-width: 480px) {
    .product-image {
        height: 250px;
    }
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.product-image {
    cursor: pointer;
    position: relative;
}

.product-image::before {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0;
    z-index: 2;
    transition: all 0.3s ease;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
}

.product-image:hover::before,
.product-image:hover::after {
    opacity: 1;
}

.wrapper {
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    padding: 0 40px;
}

.wrapper i {
    top: 50%;
    height: 44px;
    width: 44px;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 1.15rem;
    position: absolute;
    text-align: center;
    line-height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: transform 0.1s linear;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    z-index: 2;
}

.wrapper i:active {
    transform: translateY(-50%) scale(0.9);
}

.wrapper i:hover {
    background: var(--primary-color);
    color: #fff;
}

.wrapper i:first-child {
    right: -22px;
}

.wrapper i:last-child {
    left: -22px;
}

.wrapper .carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    border-radius: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel.no-transition {
    scroll-behavior: auto;
}

.carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.carousel :where(.card, .img) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card.card {
    scroll-snap-align: start;
    height: 100%;
    list-style: none;
    background: #fff;
    cursor: pointer;
    padding-bottom: 15px;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.product-card.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

@media screen and (max-width: 900px) {
    .wrapper .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel {
        grid-auto-columns: 100%;
    }
    
    .wrapper i {
        display: none;
    }
}

.services-wrapper {
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    padding: 0 40px;
    overflow: hidden;
}

.services-wrapper i {
    top: 50%;
    height: 44px;
    width: 44px;
    color: var(--dark-color);
    cursor: pointer;
    font-size: 1.15rem;
    position: absolute;
    text-align: center;
    line-height: 44px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    transition: transform 0.1s linear;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    z-index: 2;
}

.services-wrapper i:active {
    transform: translateY(-50%) scale(0.9);
}

.services-wrapper i:hover {
    background: var(--primary-color);
    color: #fff;
}

.services-wrapper i:first-child {
    right: -22px;
}

.services-wrapper i:last-child {
    left: -22px;
}

.services-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 3) - 12px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    border-radius: 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 5px;
    margin: 0 -5px;
}

.services-carousel::-webkit-scrollbar {
    display: none;
}

.services-carousel.no-transition {
    scroll-behavior: auto;
}

.services-carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.services-carousel.dragging .card {
    cursor: grab;
    user-select: none;
}

.service-card.card {
    scroll-snap-align: start;
    height: 100%;
    list-style: none;
    background: #fff;
    cursor: pointer;
    padding: 2rem;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.service-card.card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: static;
    width: auto;
    height: auto;
    transform: none;
    background: none;
    box-shadow: none;
    display: block;
    line-height: 1;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .service-card.card i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card.card {
        padding: 1.5rem;
    }
    
    .service-card.card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card.card p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 900px) {
    .services-carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }
}

@media screen and (max-width: 600px) {
    .services-carousel {
        grid-auto-columns: 100%;
        padding: 10px 0;
        margin: 0;
    }
    
    .services-wrapper {
        padding: 0 20px;
    }
}

@media screen and (max-width: 600px) {
    .wrapper .carousel,
    .services-carousel {
        position: relative;
    }
    
    .wrapper .carousel::after,
    .services-carousel::after {
        content: '\f053';  /* سهم لليسار */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 1.5rem;
        animation: arrowBounce 1s infinite;
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(255,255,255,0.8);
    }
    
    .wrapper .carousel::before,
    .services-carousel::before {
        content: '\f054';  /* سهم لليمين */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 1.5rem;
        animation: arrowBounce 1s infinite;
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(255,255,255,0.8);
    }

    @keyframes arrowBounce {
        0%, 100% {
            transform: translateY(-50%);
        }
        50% {
            transform: translateY(-60%);
        }
    }
    
    .wrapper i,
    .services-wrapper i {
        display: none;
    }
}

.carousel {
    margin: 2rem auto;
    max-width: 400px;
    padding: 2rem 0;
    position: relative;
}

.carousel-item {
    padding: 1rem;
    text-align: center;
}

.carousel-item .row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
}

.carousel-item .col-md-4 {
    display: flex;
    flex-direction: column;
}

.service-card.card,
.product-card.card {
    margin: 0 auto;
    max-width: 350px;
    height: 100%;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
}

.carousel-control-prev,
.carousel-control-next {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: -22px;
}

.carousel-control-next {
    right: -22px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.carousel-item {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

@media (max-width: 768px) {
    .carousel {
        padding: 1rem;
        margin: 1rem auto;
        max-width: 320px;
    }
    
    .service-card.card,
    .product-card.card {
        max-width: 280px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-control-prev {
        left: -18px;
    }
    
    .carousel-control-next {
        right: -18px;
    }
} 

.services-row,
.products-row {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
    padding: 1rem;
}

.service-card.card,
.product-card.card {
    flex: 0 0 calc(25% - 1rem);
    margin: 0;
    min-width: 250px;
}

.carousel {
    overflow: hidden;
    position: relative;
    margin: 2rem auto;
    max-width: 100%;
    padding: 0;
}

.carousel-inner {
    overflow: visible;
}

.carousel-item {
    display: block;
    transition: transform 0.5s ease-in-out;
}

.carousel-item.active {
    transform: translateX(0);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 0;
}

.carousel-control-next {
    right: 0;
}

@media (max-width: 768px) {
    .service-card.card,
    .product-card.card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 200px;
    }
    
    .carousel {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .service-card.card,
    .product-card.card {
        flex: 0 0 calc(100% - 1rem);
        min-width: 200px;
    }
} 