/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    position: relative;
    direction: rtl; /* Right-to-Left for Arabic */
    text-align: right; /* Default text alignment for RTL */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -3;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.98) 100%);
    backdrop-filter: blur(20px);
    padding: 1.5rem 0; /* Reduced padding */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(218, 165, 32, 0.2);
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DAA520, #FFD700, #DAA520, transparent);
}

.header-content { /* New flex container for logo and text */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes logo to right, text to left */
}

.logo-section {
    margin-bottom: 0; /* Remove bottom margin */
    margin-right: 20px; /* Space between logo and text */
  	margin-left: 30px;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo {
    width: 180px; /* Significantly reduced logo size */
    height: 130;
    border-radius: 20px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(218, 165, 32, 0.3),
        0 0 15px rgba(255, 215, 0, 0.2);
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.1);
}

.logo:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 0 3px rgba(218, 165, 32, 0.5),
        0 0 25px rgba(255, 215, 0, 0.4);
}

.header-text { /* Container for main title and tagline */
    flex-grow: 1; /* Allows text to take available space */
    text-align: right; /* Align text to the right for RTL */
}

.main-title {
    font-size: 2.5rem; /* Adjusted font size */
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem; /* Reduced margin */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -5px; /* Adjusted position */
    right: 0; /* Align to right for RTL */
    transform: none; /* Remove translateX as alignment is from right */
    width: 80px; /* Smaller underline */
    height: 3px;
    background: linear-gradient(90deg, #DAA520, #FFD700, #DAA520);
    border-radius: 2px;
}

.tagline {
    font-size: 1.2rem; /* Adjusted font size */
    color: #DAA520;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Banner Styles */
.banner {
    margin-bottom: 2rem; /* Reduced margin to bring products up */
    position: relative;
}

.banner-image {
    text-align: center;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4), /* Reduced shadow */
        0 0 0 2px rgba(218, 165, 32, 0.3);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    padding: 1.5rem; /* Significantly reduced padding */
    max-height: 250px; /* Fixed maximum height for the banner container */
    display: flex; /* Use flexbox to center image vertically if needed */
    align-items: center; /* Center image vertically */
    justify-content: center; /* Center image horizontally */
    position: relative;
}

.banner-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(218, 165, 32, 0.05) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 215, 0, 0.05) 100%);
    pointer-events: none;
}

.banner-img {
    width: 100%;
    max-width: 900px;
    height: 100%; /* Make image fill the height of its container */
    object-fit: cover; /* This will crop the image to fit without distortion */
    border-radius: 15px; /* Slightly smaller radius for image within banner */
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Lighter shadow */
}

.banner-img:hover {
    transform: scale(1.01); /* Reduced scale on hover */
    filter: brightness(1.15) contrast(1.1);
}

/* Products Section */
.products {
    margin-bottom: 5rem;
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #DAA520, #FFD700, #DAA520, transparent);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Adjusted minmax for better fit */
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(26, 26, 26, 0.95) 50%, 
        rgba(0, 0, 0, 0.9) 100%);
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 165, 32, 0.1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(218, 165, 32, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

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

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(218, 165, 32, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.product-image {
    margin-bottom: 2rem;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.2);
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 215, 0, 0.05) 0%, 
        transparent 70%);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(1.1) contrast(1.05);
    z-index: 1;
    position: relative;
}

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

.product-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.product-description {
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.product-btn {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #B8860B 100%);
    color: #000;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 25px rgba(218, 165, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.product-btn::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: left 0.6s ease;
}

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

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(218, 165, 32, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #FFD700 100%);
}

/* About Section */
.about {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(26, 26, 26, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    padding: 5rem 0;
    margin-bottom: 5rem;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.1);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    border-radius: 30px;
    pointer-events: none;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #B8860B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #DAA520, #FFD700, #DAA520, transparent);
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content p {
    font-size: 1.3rem;
    line-height: 2;
    color: #e0e0e0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(26, 26, 26, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    padding: 5rem 0;
    margin-bottom: 2rem;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.1);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    border-radius: 30px;
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    transform: translateX(-8px) translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(218, 165, 32, 0.2);
    border-color: rgba(218, 165, 32, 0.4);
}

.contact-icon {
    font-size: 2.2rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #B8860B 100%);
    border-radius: 50%;
    color: #000;
    box-shadow: 
        0 8px 20px rgba(218, 165, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.contact-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #cccccc;
    font-size: 1.1rem;
}

.contact-form {
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.1) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    color: #f5f5f5;
    backdrop-filter: blur(10px);
    text-align: right; /* For RTL input */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 
        0 0 0 3px rgba(218, 165, 32, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.7);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #B8860B 100%);
    color: #000;
    border: none;
    padding: 18px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 25px rgba(218, 165, 32, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::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: left 0.6s ease;
}

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(218, 165, 32, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 50%, #FFD700 100%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(26, 26, 26, 0.95) 50%, 
        rgba(0, 0, 0, 0.98) 100%);
    color: #DAA520;
    text-align: center;
    padding: 3rem 0;
    backdrop-filter: blur(20px);
    border-radius: 30px 30px 0 0;
    box-shadow: 
        0 -10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(218, 165, 32, 0.2);
    border-top: 2px solid rgba(218, 165, 32, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DAA520, #FFD700, #DAA520, transparent);
}

.footer p {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column; /* Stack logo and text on smaller screens */
        text-align: center;
    }
    .logo-section {
        margin-right: 0; /* Remove margin when stacked */
        margin-bottom: 1.5rem; /* Add some space below logo */
    }
    .header-text {
        text-align: center;
    }
    .main-title {
        font-size: 2rem;
    }
    .main-title::after {
        right: 50%; /* Center underline when stacked */
        transform: translateX(50%);
    }
    .tagline {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .logo {
        width: 150px; /* Adjust logo size for mobile */
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .product-card {
        padding: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .banner-image {
        padding: 1rem; /* Even smaller padding on mobile */
        max-height: 180px; /* Smaller banner on mobile */
    }
    
    .about {
        padding: 3rem 0;
    }
    
    .contact {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .banner-image {
        padding: 0.8rem;
        max-height: 150px; /* Smallest banner on very small screens */
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-description {
        font-size: 1rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .about {
        padding: 2.5rem 0;
    }
    
    .contact {
        padding: 2.5rem 0;
    }
}

/* Additional Professional Enhancements */
.product-card,
.about,
.contact,
.banner-image {
    position: relative;
}

.product-card::after,
.about::after,
.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.3) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(255, 215, 0, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(218, 165, 32, 0.3);
    color: #FFD700;
}

::-moz-selection {
    background: rgba(218, 165, 32, 0.3);
    color: #FFD700;
}

/* Background Bubbles */
.background-bubbles {
    position: fixed; /* لتثبيت الفقاعات في الخلفية حتى عند التمرير */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* لإخفاء الفقاعات عندما تخرج من الشاشة */
    z-index: -1; /* لضمان ظهورها خلف كل المحتوى و body::before */
    list-style: none; /* إزالة تنسيق القائمة الافتراضي */
    padding: 0;
    margin: 0;
    pointer-events: none; /* لمنع الفقاعات من اعتراض النقرات أو التفاعل مع المستخدم */
}

.background-bubbles li {
    position: absolute;
    display: block;
    background: rgba(255, 215, 0, 0.15); /* لون ذهبي مع شفافية خفيفة */
    border-radius: 50%; /* لجعلها دائرية */
    animation: animateBubbles linear infinite; /* تطبيق التحريك، بسرعة ثابتة، وبلا نهاية */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 0 8px rgba(255, 215, 0, 0.3); /* ظلال خفيفة لإعطاء عمق */
    border: 1px solid rgba(255, 215, 0, 0.2); /* حدود ذهبية خفيفة */
}

/* تحديد خصائص كل فقاعة بشكل فردي للتنوع في الحجم، الموقع، سرعة التحريك، وتأخير البدء */
.background-bubbles li:nth-child(1) { left: 15%; top: 20%; width: 80px; height: 80px; animation-delay: 0.2s; animation-duration: 20s; }
.background-bubbles li:nth-child(2) { right: 25%; top: 40%; width: 40px; height: 40px; animation-delay: 0.5s; animation-duration: 15s; }
.background-bubbles li:nth-child(3) { left: 5%; top: 60%; width: 60px; height: 60px; animation-delay: 0.8s; animation-duration: 22s; }
.background-bubbles li:nth-child(4) { right: 10%; top: 10%; width: 100px; height: 100px; animation-delay: 0.1s; animation-duration: 25s; }
.background-bubbles li:nth-child(5) { left: 35%; top: 80%; width: 50px; height: 50px; animation-delay: 1.2s; animation-duration: 18s; }
.background-bubbles li:nth-child(6) { right: 5%; top: 5%; width: 70px; height: 70px; animation-delay: 0.3s; animation-duration: 20s; }
.background-bubbles li:nth-child(7) { left: 45%; top: 30%; width: 90px; height: 90px; animation-delay: 0.7s; animation-duration: 23s; }
.background-bubbles li:nth-child(8) { right: 40%; top: 70%; width: 30px; height: 30px; animation-delay: 1.5s; animation-duration: 16s; }
.background-bubbles li:nth-child(9) { left: 70%; top: 15%; width: 120px; height: 120px; animation-delay: 0.9s; animation-duration: 28s; }
.background-bubbles li:nth-child(10) { right: 18%; top: 85%; width: 25px; height: 25px; animation-delay: 1.1s; animation-duration: 19s; }
.background-bubbles li:nth-child(11) { left: 25%; top: 50%; width: 95px; height: 95px; animation-delay: 0.6s; animation-duration: 24s; }
.background-bubbles li:nth-child(12) { right: 30%; top: 25%; width: 65px; height: 65px; animation-delay: 0.4s; animation-duration: 21s; }
.background-bubbles li:nth-child(13) { left: 85%; top: 45%; width: 110px; height: 110px; animation-delay: 1.3s; animation-duration: 26s; }
.background-bubbles li:nth-child(14) { right: 50%; top: 55%; width: 15px; height: 15px; animation-delay: 0.95s; animation-duration: 17s; }
.background-bubbles li:nth-child(15) { left: 55%; top: 5%; width: 85px; height: 85px; animation-delay: 0.25s; animation-duration: 29s; }
.background-bubbles li:nth-child(16) { right: 0%; top: 65%; width: 55px; height: 55px; animation-delay: 1.05s; animation-duration: 20s; }


/* Keyframes لتعريف حركة الفقاعات */
@keyframes animateBubbles {
    0% {
        /* تبدأ من موقعها الثابت المحدد في nth-child */
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1; /* <--- الأهم: تظهر الفقاعة بشكل كامل وفوري */
    }
    25% {
        /* تتحرك قليلاً بشكل عشوائي */
        transform: translate(2vw, 5vh) rotate(45deg) scale(1.05); 
        opacity: 1;
    }
    50% {
        /* تتحرك في اتجاه آخر */
        transform: translate(-5vw, 10vh) rotate(90deg) scale(0.95);
        opacity: 1;
    }
    75% {
        /* تتحرك مرة أخرى */
        transform: translate(3vw, 15vh) rotate(135deg) scale(1.02);
        opacity: 1;
    }
    100% {
        /* تعود لموقعها الأصلي تقريباً، وتختفي في النهاية استعداداً للدورة الجديدة */
        transform: translate(0, 0) rotate(180deg) scale(1); 
        opacity: 0; /* تختفي الفقاعات لتبدأ الدورة من جديد */
    }
}

/* Styling for Product Listing Page (cups.php) */

.product-listing-section {
    padding: 5rem 0;
    margin-bottom: 5rem;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(26, 26, 26, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(218, 165, 32, 0.2),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.1);
    position: relative;
}

/* Reusing section-title style */
.product-listing-section .section-title {
    margin-bottom: 3.5rem;
}

.table-responsive {
    overflow-x: auto; /* يجعل الجدول قابلًا للتمرير أفقيًا على الشاشات الصغيرة */
    margin-bottom: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(218, 165, 32, 0.15); /* حدود ذهبية خفيفة للجدول بأكمله */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-table {
    width: 100%;
    border-collapse: collapse; /* لإزالة الفراغات بين الخلايا */
    text-align: right;
    color: #f5f5f5;
    background-color: rgba(0, 0, 0, 0.8); /* خلفية داكنة للجدول */
    font-size: 1.5rem;
}

.product-table th,
.product-table td {
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(218, 165, 32, 0.1); /* فواصل ذهبية خفيفة بين الصفوف */
}

.product-table th {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%); /* خلفية ذهبية لرؤوس الأعمدة */
    color: #FFD700;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky; /* لجعل رؤوس الأعمدة ثابتة عند التمرير الأفقي */
    top: 0;
    z-index: 10;
}

.product-table tbody tr {
    transition: background-color 0.3s ease;
}

.product-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.75); /* لون خلفية مختلف للصفوف الزوجية */
}

.product-table tbody tr:hover {
    background-color: rgba(218, 165, 32, 0.1); /* تأثير ذهبي عند التمرير على الصف */
}

.product-table td img {
    max-width: 120px; /* حجم الصورة في الجدول */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.product-table td img:hover {
    transform: scale(1.05); /* تكبير بسيط عند التمرير على الصورة */
}

/* Additional Info Section */
.additional-info {
    background: linear-gradient(135deg, 
        rgba(218, 165, 32, 0.1) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.1);
    margin-top: 3rem;
}

.additional-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.additional-info ul {
    list-style: none; /* إزالة النقاط الافتراضية للقائمة */
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* عرض العناصر جنبًا إلى جنب */
    gap: 1.5rem;
}

.additional-info li {
    display: flex;
    align-items: center;
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    background-color: rgba(218, 165, 32, 0.05); /* خلفية خفيفة لعناصر القائمة */
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.additional-info li:hover {
    transform: translateY(-3px);
    background-color: rgba(218, 165, 32, 0.1);
}

.additional-info .info-icon {
    font-size: 1.5rem;
    color: #FFD700;
    margin-left: 15px; /* مسافة بين الأيقونة والنص */
    flex-shrink: 0;
}

/* Responsive adjustments for the new page */
@media (max-width: 768px) {
    .product-table th,
    .product-table td {
        padding: 1rem 0.8rem;
        font-size: 1.25rem;
    }
    .product-table td img {
        max-width: 60px;
    }
    .additional-info ul {
        grid-template-columns: 1fr; /* عرض العناصر فوق بعضها على الشاشات الصغيرة جداً */
    }
}

/* Image Lightbox Styles (for product image enlargement) */
.image-lightbox {
    position: fixed; /* لتثبيت اللايت بوكس فوق كل شيء */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* خلفية داكنة شفافة */
    z-index: 10000; /* قيمة عالية جداً لضمان ظهوره فوق كل شيء */
    display: flex; /* لمركزة الصورة في المنتصف */
    justify-content: center;
    align-items: center;
    visibility: hidden; /* مخفي بشكل افتراضي */
    opacity: 0; /* مخفي بشكل افتراضي */
    transition: visibility 0.3s, opacity 0.3s; /* انتقال سلس للظهور والاختفاء */
    pointer-events: none; /* لمنع التفاعل عندما يكون مخفياً */
    overflow: auto; /* يسمح بالتمرير إذا كانت الصورة أكبر من الشاشة */
}

.image-lightbox.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* يسمح بالتفاعل عندما يكون نشطاً */
}

.lightbox-content {
    max-width: 90%; /* حجم الصورة المكبرة */
    max-height: 90%;
    display: block;
    margin: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4); /* ظل ذهبي حول الصورة */
    transform: scale(0.8); /* تبدأ أصغر قليلاً من حجمها النهائي لتأثير التحريك */
    transition: transform 0.3s ease-out; /* انتقال سلس لتأثير التكبير */
}

.image-lightbox.active .lightbox-content {
    transform: scale(1); /* تكبر إلى الحجم الكامل عند التفعيل */
}

.close-btn {
    position: absolute;
    top: 30px; /* مسافة من الأعلى */
    right: 50px; /* مسافة من اليمين (لأن الصفحة RTL) */
    font-size: 50px;
    color: #FFD700; /* لون ذهبي لزر الإغلاق */
    cursor: pointer;
    z-index: 10001; /* أعلى من اللايت بوكس نفسه */
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #DAA520; /* يتغير اللون عند التمرير */
}

/* اختياري: لمنع تمرير الصفحة الخلفية عند فتح اللايت بوكس */
body.lightbox-open {
    overflow: hidden;
}