/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: #1a1a1a;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.7rem; }

p {
    margin-bottom: 1.2rem;
    line-height: 2;
    font-size: 1.1rem;
    font-weight: 500;
}

strong {
    color: #09141b;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-secondary:hover {
    background: #e74c3c;
    color: white;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-brand a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-brand a:hover {
    transform: scale(1.05);
}

.nav-brand h1 {
    color: white;
    margin-bottom: 0;
    font-size: 1.7rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nav-menu a:hover {
    color: #e74c3c;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    display: none;
}

/* Ensure dropdown opens when parent has .active */
.dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-shadow: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f2f6;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #e74c3c !important;
    padding-right: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Desktop dropdown arrow */
.dropdown-toggle::after {
    content: "▼";
    margin-left: 8px;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: white;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Show State - يشتغل على كل الأجهزة */
.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background: white !important;
    min-width: 250px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 15px 0 !important;
    z-index: 9999 !important;
    list-style: none !important;
}

/* Test: Make it super visible */
.dropdown-menu.show {
    background: red !important;
    height: 200px !important;
    width: 300px !important;
    border: 5px solid blue !important;
}

/* Mobile Dropdown Styling */
@media (max-width: 768px) {
    .dropdown {
        position: relative;
    }
    
    .dropdown-menu.show {
        position: static !important;
        background: #f8f9fa !important;
        border-radius: 5px !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
        padding: 10px 0 !important;
        margin-top: 5px !important;
    }
    
    .dropdown-menu.show a {
        color: #2c3e50 !important;
        padding: 12px 20px !important;
        background: white !important;
        margin: 2px 10px !important;
        border-radius: 5px !important;
        text-shadow: none !important;
        display: block !important;
    }
    
    .dropdown-menu.show a:hover {
        background: #e74c3c !important;
        color: white !important;
    }
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 2.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.about-card h3 {
    color: #2980b9;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Products Section */
.products {
    padding: 80px 0;
    background: #f8f9fa;
}

.products h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3, .product-card p, .product-card .price {
    padding: 0 30px;
}

.product-card h3 {
    color: #2980b9;
    margin: 20px 0 15px;
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #219a52;
    margin: 20px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.product-card .btn-primary {
    margin: 0 30px 30px;
    width: calc(100% - 60px);
    text-align: center;
}

/* Articles Section */
.articles {
    padding: 80px 0;
    background: #f8f9fa;
}

.articles h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 30px;
}

.article-content h3 {
    color: #2980b9;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
}

.article-content .btn-primary {
    display: inline-block;
    width: auto;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: white;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    background: #e74c3c;
    color: white;
    padding: 20px 30px;
    margin-bottom: 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item h3:hover {
    background: #c0392b;
}

.faq-item p {
    padding: 20px 30px;
    margin-bottom: 0;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.contact-item {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
}

.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
}

.contact-form h3 {
    color: white;
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background: #1a252f;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d5d8dc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: #e74c3c;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #ffffff59;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.4rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1.3rem;
        line-height: 2.1;
    }
    
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    
    p {
        font-size: 1.2rem;
        line-height: 2.1;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 20px 0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #34495e;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        background: #34495e;
        padding: 0;
        transition: all 0.3s ease;
        transform: none;
        box-shadow: none;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 200px !important;
        padding: 10px 0 !important;
    }
    
    .dropdown-menu a {
        background: #34495e !important;
        color: #bdc3c7 !important;
        padding: 12px 40px !important;
        border-bottom: 1px solid #2c3e50 !important;
    }
    
    .dropdown-menu a:hover {
        background: #e74c3c !important;
        color: white !important;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .articles h2 {
        font-size: 2.2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .about h2,
    .products h2,
    .faq h2 {
        font-size: 2.2rem;
    }
    
    .contact h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 18px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.4;
    }
    
    .hero-content p {
        font-size: 1.25rem;
        line-height: 2;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    p {
        font-size: 1.15rem;
        line-height: 2;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 15px 35px;
        font-size: 1.1rem;
        font-weight: 700;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        margin: 0 10px;
    }
    
    .about h2,
    .products h2,
    .faq h2 {
        font-size: 1.9rem;
    }
    
    .contact h2 {
        font-size: 1.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .faq-item h3 {
        font-size: 1.4rem;
        line-height: 1.5;
    }
    
    .faq-item p {
        font-size: 1.1rem;
        line-height: 2;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card,
.product-card,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}

/* Additional styles for new pages */
.main-content {
    padding: 80px 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.content-card h3, 
.content-card p {
    padding: 0 25px;
}

.content-card h3 {
    color: #e74c3c;
    margin: 20px 0 15px;
}

.content-card p {
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Coverage Section */
.coverage-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.coverage-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.coverage-item:hover {
    transform: translateY(-5px);
}

.coverage-item h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Safety Section */
.safety-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.safety-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 2.5rem;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.safety-item {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.safety-item h3 {
    color: #fff;
    margin-bottom: 15px;
}

.safety-item p {
    line-height: 1.7;
}

/* Product Features */
.features {
    padding: 0 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features span {
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Select styling */
.contact-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    background: white;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
    transform: scale(1.1);
}

/* Animation for WhatsApp button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .content-grid,
    .coverage-grid,
    .services-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-item,
    .service-card,
    .content-card {
        margin: 0 10px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}
