/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    transition: all 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
}

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

header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    width: 100%;
}

body.dark-mode header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 100px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    transition: all 0.3s ease;
}

body.dark-mode .logo-text {
    color: #f0f0f0;
}

.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 50%;
    background-color: #f8f9fa;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

body.dark-mode .theme-switcher {
    background-color: #2c2c2c;
    border-color: #444;
    color: #f0f0f0;
}

.theme-switcher:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

body.dark-mode .theme-switcher:hover {
    background-color: #3c3c3c;
}

.theme-icon {
    font-size: 1.2rem;
    transition: transform 0.5s ease;
}

body.dark-mode .theme-icon {
    transform: rotate(180deg);
}

/* قسم الترحيب المحسن */
.hero-section {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/15647920.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.9);
    z-index: 1;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
}

body.dark-mode .hero-bg {
    filter: brightness(0.6);
}

body.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(0, 191, 99, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

.hero-main-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: titleGlow 3s infinite alternate;
    font-family: 'Aref Ruqaa', serif ;
}

@keyframes titleGlow {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4),
                     0 0 10px rgba(255, 255, 255, 0.2);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4),
                     0 0 20px rgba(255, 255, 255, 0.4),
                     0 0 30px rgba(52, 152, 219, 0.3);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.4;
}

.hero-arrow-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-arrow-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.9;
}

.hero-arrow-down {
    font-size: 3rem;
    color: white;
    animation: arrowBounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-arrow-down:hover {
    transform: scale(1.2);
    color: #3498db;
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.product-section {
    margin: 60px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 50px;
    position: relative;
    transition: color 0.3s ease;
}

body.dark-mode .section-title {
    color: #f0f0f0;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #45b800;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.product {
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.dark-mode .product {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product.right-entry {
    transform: translateX(100px);
}

.product.visible {
    opacity: 1;
    transform: translateX(0);
}

.product:hover {
    transform: translateY(-5px) translateX(0);
}

.product-content {
    flex: 1;
    padding: 30px;
    position: relative;
}

.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

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

.main-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    display: block;
    height: auto;
}

body.dark-mode .main-image {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.product:hover .main-image {
    transform: rotate(-2deg);
}

.product-title-img {
    width: 100%;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

.product:hover .product-title-img {
    transform: scale(1.05);
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

body.dark-mode .product-description {
    color: #ddd;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.buy-btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.whatsapp-icon,
.twitter-icon,
.instagram-icon,
.linkedin-icon,
.tiktok-icon {
    background-color: #45b800;
}

.whatsapp-icon:hover,
.twitter-icon:hover,
.instagram-icon:hover,
.linkedin-icon:hover,
.tiktok-icon:hover {
    background-color: #45b800;
}

.green-bg {
    background-color: #d4edda;
}

.blue-bg {
    background-color: #d1ecf1;
}

.yellow-bg {
    background-color: #fff3cd;
}

body.dark-mode .green-bg {
    background-color: #1a472a;
}

body.dark-mode .blue-bg {
    background-color: #0a3d62;
}

body.dark-mode .yellow-bg {
    background-color: #5d4a00;
}

.other-products {
    padding: 50px 0;
    margin: 60px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
}

body.dark-mode .other-products {
    background-color: #1e1e1e;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #fff;
}

body.dark-mode .product-card {
    background-color: #2c2c2c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-15px) scale(1.03);
}

body.dark-mode .product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

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

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

body.dark-mode .product-card h3 {
    color: #f0f0f0;
}

.product-card p {
    transition: color 0.3s ease;
}

body.dark-mode .product-card p {
    color: #ddd;
}

footer {
    padding: 60px 0 20px;
    transition: all 0.3s ease;
}

body.dark-mode footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #45b800;
    bottom: 0;
    right: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

body.dark-mode .contact-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
    background-color: #45b800;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: #45b800;
}

.registry-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #45b800;
}

.registry-icon {
    font-size: 1.5rem;
    color: #45b800;
}

.registry-link {
    color: #45b800 !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: color 0.3s ease;
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    color: inherit;
    font-size: 1rem;
}

body:not(.dark-mode) .faq-question {
    color: #ecf0f1;
}

body.dark-mode .faq-question {
    color: #f0f0f0;
}

.faq-question:hover {
    color: #45b800;
}

.faq-question i {
    transition: transform 0.3s;
    margin-left: 10px;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 1.6;
}

body:not(.dark-mode) .faq-answer {
    color: #bdc3c7;
}

body.dark-mode .faq-answer {
    color: #ccc;
}

.faq-item.active .faq-answer {
    padding: 0 0 15px 0;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .chevron-icon {
    transform: rotate(180deg);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

body:not(.dark-mode) {
    background-color: #fff;
}

body:not(.dark-mode) footer {
    background-color: #1a1a1a;
    color: #fff;
}

body:not(.dark-mode) .footer-section h3 {
    color: #ecf0f1;
}

body:not(.dark-mode) .footer-section a {
    color: #bdc3c7;
}

body:not(.dark-mode) .footer-section a:hover {
    color: #45b800;
}

body:not(.dark-mode) .copyright {
    color: #bdc3c7;
}

body:not(.dark-mode) .contact-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .other-products {
    background-color: #0d0d0d;
}

body.dark-mode .footer-section h3 {
    color: #f0f0f0;
}

body.dark-mode .footer-section a {
    color: #ccc;
}

body.dark-mode .footer-section a:hover {
    color: #45b800;
}

body.dark-mode .copyright {
    color: #ccc;
}

body.dark-mode .commercial-registry a {
    color: #45b800;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .product {
        flex-direction: column;
    }
    
    .product.right-entry {
        transform: translateX(100px);
    }
    
    .product.visible {
        transform: translateX(0);
    }
    
    .product-image {
        order: -1;
        margin-top: 20px;
    }
    
    .product-title-img {
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-main-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-arrow-down {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        padding: 0 10px;
    }
    
    .hero-arrow-text {
        font-size: 1.1rem;
    }
    
    .hero-arrow-down {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-arrow-container {
        margin-top: 30px;
    }
    
    .hero-arrow-text {
        font-size: 1rem;
    }
    
    .hero-arrow-down {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-description {
        font-size: 1rem;
    }
    
    .buy-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 375px) {
    .logo-text {
        font-size: 18px;
    }
    
    .hero-main-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-arrow-text {
        font-size: 0.9rem;
    }
    
    .hero-arrow-down {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

/* تحسينات خاصة للأجهزة التي تدعم اللمس */
@media (hover: none) {
    .theme-switcher:hover,
    .buy-btn:hover,
    .product-card:hover,
    .social-icon:hover,
    .product:hover,
    .hero-arrow-down:hover,
    .faq-question:hover {
        transform: none;
    }
    
    .theme-switcher:active,
    .buy-btn:active,
    .product-card:active,
    .social-icon:active,
    .product:active,
    .hero-arrow-down:active,
    .faq-question:active {
        transform: scale(0.98);
    }
}

@supports not (display: grid) {
    .products-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .product-card {
        width: 250px;
        margin: 15px;
    }
    
    .footer-content {
        display: flex;
        flex-wrap: wrap;
    }
    
    .footer-section {
        flex: 1;
        min-width: 250px;
        margin: 15px;
    }
}

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

button, .buy-btn, .theme-switcher {
    cursor: pointer;
}

button:focus, .buy-btn:focus, .theme-switcher:focus,
.faq-question:focus, .social-icon:focus {
    outline: 2px solid #45b800;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .hero-arrow-down {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-arrow-down {
        font-size: 2rem;
    }
}