  @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');
:root {
    --primary-green: #008743;
    --secondary-green: #00A652;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 15px rgba(0, 0, 0, 0.1);
    --dark-bg: #121212;
    --dark-text: #E0E0E0;
    --dark-secondary: #1E1E1E;
    --transition-default: all 0.3s ease;
}
body {
    font-family: 'Cairo', sans-serif;
}
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}
body.dark-mode .bg-light,
body.dark-mode .card,
body.dark-mode .product-card {
    background-color: var(--dark-secondary) !important;
}
body.dark-mode .text-muted {
    color: #A0A0A0 !important;
}
body.dark-mode .btn-filter {
    background: var(--dark-secondary);
    color: var(--secondary-green);
    border-color: var(--secondary-green);
}
body.dark-mode .btn-filter:hover,
body.dark-mode .btn-filter.active,
body.dark-mode .btn-filter:focus {
    background: var(--secondary-green);
    color: var(--dark-text);
}
body.dark-mode .product-img-container {
    background: #2E2E2E;
}
body.dark-mode .card-title {
    color: var(--secondary-green);
}
body.dark-mode .calories {
    color: var(--primary-green);
}
body.dark-mode .btn-product {
    background: var(--secondary-green);
}
body.dark-mode .btn-product:hover,
body.dark-mode .btn-product:focus {
    background: var(--primary-green);
}
body.dark-mode .magic-coffee-section::before {
    background: radial-gradient(circle, rgba(0,167,82,0.2) 0%, rgba(0,0,0,0) 100%);
}
body.dark-mode .magic-coffee-item {
    background: var(--dark-secondary);
}
body.dark-mode .magic-coffee-title {
    color: var(--secondary-green);
}
body.dark-mode .magic-coffee-text {
    color: var(--dark-text);
}
body.dark-mode .contact-info ul li {
    color: var(--dark-text);
}
body.dark-mode .contact-info ul li:hover,
body.dark-mode .contact-info ul li:focus {
    color: var(--secondary-green);
}
/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-default);
    z-index: 1000;
}
.dark-mode-toggle:hover,
.dark-mode-toggle:focus {
    background: var(--secondary-green);
    outline: 2px solid var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(0, 167, 82, 0.3);
}
/* Base Button Styles */
.btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    border-radius: 20px;
    transition: var(--transition-default);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}
.btn-cta, .btn-primary, .btn-filter, .btn-product, .load-more-btn {
    background: var(--primary-green);
    color: var(--white);
}
.btn-cta:hover, .btn-primary:hover, .btn-filter:hover, .btn-product:hover, .load-more-btn:hover,
.btn-cta:focus, .btn-primary:focus, .btn-filter:focus, .btn-product:focus, .load-more-btn:focus {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    outline: 2px solid var(--secondary-green);
}
/* Video Section */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: url('/img/background_1.jpeg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    filter: brightness(0.9) contrast(1.1);
    -webkit-filter: brightness(0.9) contrast(1.1);
}
/* Bold Typography */
.card-title {
    font-weight: 800;
    letter-spacing: 1px;
}
h2 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.popup-overlay.show {
    display: flex;
    opacity: 1;
}
.popup-content {
    position: relative;
    background: var(--white);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    padding: 20px;
    box-shadow: var(--shadow-hover);
    text-align: center;
}
.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--primary-green);
    color: var(--white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-default);
}
.popup-close:hover,
.popup-close:focus {
    background: var(--secondary-green);
    outline: 2px solid var(--secondary-green);
}
/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background: transparent;
    text-align: center;
}
.video-overlay div {
    padding: 25px;
    background: transparent;
    border-radius: 15px;
    animation: fadeInUp 1s ease-out;
    transform: translateY(20px);
    opacity: 0;
    animation-fill-mode: forwards;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.video-overlay h1 {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: none;
    margin-bottom: 1.2rem;
    transition: var(--transition-default);
}
.video-overlay h1:hover,
.video-overlay h1:focus {
    transform: scale(1.05);
    color: var(--secondary-green);
}
.video-overlay p {
    font-size: 1.9rem;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}
/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,167,82,0.1) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.5;
    z-index: 0;
}
.contact-section .container {
    position: relative;
    z-index: 1;
}
.contact-section h2, .products-section h2, .magic-coffee-section h2, .about-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}
.contact-section h2:hover, .products-section h2:hover, .magic-coffee-section h2:hover, .about-section h2:hover {
    color: var(--primary-green);
}
.contact-form .form-control {
    border-radius: 0 12px 12px 0;
    border: 1px solid #ddd;
    transition: var(--transition-default);
    font-size: 1rem;
    background: var(--bg-light);
}
.contact-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 135, 67, 0.3);
    transform: scale(1.01);
}
.contact-form .input-group-text {
    background: #f1f1f1;
    border-radius: 12px 0 0 12px;
    border: 1px solid #ddd;
    color: #555;
    font-size: 1.1rem;
}
.contact-form .btn-primary {
    padding: 14px;
    border-radius: 30px;
}
.contact-info {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-default);
}
.contact-info:hover {
    transform: translateY(-5px);
}
.contact-info h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}
.contact-info ul {
    padding: 0;
}
.contact-info ul li a.link-hover:hover,
.contact-info ul li a.link-hover:focus {
    color: var(--secondary-green);
    text-decoration: underline;
}
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 1.5rem;
}
.social-icons a {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: var(--transition-default);
}
.social-icons a:hover,
.social-icons a:focus {
    color: var(--secondary-green);
    transform: scale(1.2);
}
.map-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-default);
}
.map-container:hover,
.map-container:focus {
    transform: scale(1.02);
}
.map-container iframe {
    border: none;
    width: 100%;
    height: 100%;
}
/* Products Section */
.products-section {
    padding: 60px 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}
.product-item {
    width: 25%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-sizing: border-box;
    padding: 0 15px;
}
.product-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    transition: var(--transition-default);
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: none;
}
.product-card:hover,
.product-card:focus {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}
.product-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 15px 15px 0 0;
    background: #f5f5f5;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img,
.product-card:focus .product-img {
    transform: scale(1.05);
}
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay,
.product-card:focus .product-overlay {
    opacity: 1;
}
.btn-cart, .btn-details {
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-default);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.btn-cart:hover, .btn-details:hover,
.btn-cart:focus, .btn-details:focus {
    background: var(--secondary-green);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    outline: 2px solid var(--secondary-green);
}
.card-body {
    padding: 1rem;
    text-align: center;
    background: var(--white);
    border-radius: 0 0 15px 15px;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}
.product-card:hover .card-title,
.product-card:focus .card-title {
    color: var(--secondary-green);
}
.card-text {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.card-text.calories {
    font-size: 0.8rem;
    color: var(--secondary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0.75rem;
}
.price-unavailable {
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
}
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2.5rem;
}
.filter-buttons .btn-filter {
    border: 2px solid var(--primary-green);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.load-more-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc;
}
.load-more-btn.loading .btn-text {
    display: none;
}
.load-more-btn.loading .btn-spinner {
    display: inline-block;
}
.btn-spinner {
    display: none;
    font-size: 1rem;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Magic Coffee Section */
.magic-coffee-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-light), #e8f4ee);
    position: relative;
    overflow: hidden;
}
.magic-coffee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,167,82,0.1) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.5;
}
.magic-coffee-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.magic-coffee-item {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    background: var(--white);
    transition: box-shadow 0.4s ease;
}
.magic-coffee-item:hover,
.magic-coffee-item:focus {
    box-shadow: var(--shadow-hover);
}
.magic-coffee-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
}
.magic-coffee-item:hover .magic-coffee-media,
.magic-coffee-item:focus .magic-coffee-media {
    transform: scale(1.1);
}
.magic-coffee-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,167,82,0.3), rgba(0,135,67,0.7));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: background 0.5s ease;
    color: var(--white);
    padding: 2rem;
}
.magic-coffee-item:hover .magic-coffee-overlay,
.magic-coffee-item:focus .magic-coffee-overlay {
    background: linear-gradient(to bottom, rgba(0,167,82,0.4), rgba(0,135,67,0.8));
}
.magic-coffee-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.magic-coffee-item:hover .magic-coffee-title,
.magic-coffee-item:focus .magic-coffee-title {
    transform: scale(1.05);
}
.magic-coffee-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 80%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.magic-coffee-container {
    max-width: 1200px;
    margin: 0 auto;
}
.magic-coffee-item[data-parallax] {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
/* About Section */
.about-section {
    padding: 30px 0;
    background-image: url('https://images.pexels.com/photos/585750/pexels-photo-585750.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08));
    z-index: 1;
}
.about-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #e5e0d9;
    padding: 40px;
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    margin-top: 0;
}
.title-block {
    padding: 0 50px;
    text-align: right;
}
.title-block h2 {
    font-size: 2.5em;
    color: #4a4a4a;
    margin-bottom: 5px;
}
.title-block p {
    color: #795548;
    font-size: 1.1em;
    margin-top: 0;
}
.history-text {
    max-width: 50%;
    margin-left: 20px;
    margin-right: 10px;
    text-align: right;
    padding: 20px;
}
[dir="rtl"] .history-text {
    text-align: right;
    margin-left: 20px;
    margin-right: 10px;
}
.main-content {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
.image-hands {
    width: 35%;
    position: absolute;
    right: 0;
    top: -150px;
    z-index: 15;
}
.image-hands img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}
.values-block {
    background-color: #2b3944;
    color: #ffffff;
    padding: 80px 50px 50px 50px;
    width: 70%;
    margin-right: 30%;
    text-align: right;
    line-height: 1.8;
    box-shadow: var(--shadow-soft);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.4);
}
.values-block h3 {
    color: #a87f58;
    font-size: 1.5em;
    margin-bottom: 5px;
}
.values-block h2 {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 15px;
}
.values-block p {
    font-size: 1.1em;
}
.values-block ul {
    padding: 0;
    list-style: none;
    margin-top: 15px;
}
.values-block ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}
.values-block ul li i {
    color: #FFD700;
    margin-right: 10px;
    aria-hidden: true; /* إخفاء الأيقونات الزخرفية */
}
.values-block strong {
    display: block;
    font-size: 1.2em;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    font-style: italic;
}
.image-portafilter {
    position: absolute;
    left: 0;
    bottom: -50px;
    width: 40%;
    z-index: 5;
}
.image-portafilter img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}
/* Media Queries */
@media (max-width: 992px) {
    .header-top {
        flex-direction: column;
        align-items: flex-end;
    }
    .history-text {
        position: static;
        max-width: 100%;
        margin-top: 20px;
    }
    .main-content {
        flex-direction: column;
        margin-top: 20px;
    }
    .image-hands {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    .values-block {
        width: 100%;
        margin-right: 0;
        padding: 40px;
    }
    .image-portafilter {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
}
@media (max-width: 768px) {
    .about-section, .video-section, .magic-coffee-item[data-parallax] {
        background-attachment: scroll;
    }
    .products-section, .magic-coffee-section {
        padding: 40px 0;
    }
    .contact-section h2, .products-section h2, .magic-coffee-section h2, .about-section h2 {
        font-size: 2rem;
    }
    .title-block h2 {
        font-size: 2em;
    }
    .title-block p {
        font-size: 1em;
    }
    .history-text {
        font-size: 0.9em;
    }
    .values-block {
        padding: 30px;
    }
    .values-block h2 {
        font-size: 1.8em;
    }
    .values-block h3 {
        font-size: 1.3em;
    }
    .product-item {
        width: 50%;
    }
    .product-img-container {
        aspect-ratio: 1 / 1;
        height: auto;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 0.85rem; /* زيادة لحجم النص للوصول */
    }
    .btn-product {
        font-size: 0.85rem;
        padding: 7px 14px;
    }
    .price-unavailable {
        font-size: 0.85rem;
    }
    .load-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .magic-coffee-item {
        height: 250px;
    }
    .magic-coffee-title {
        font-size: 1.8rem;
    }
    .magic-coffee-text {
        font-size: 0.95rem;
        max-width: 90%;
    }
}
@media (max-width: 576px) {
    .popup-content {
        max-width: 300px;
        padding: 15px;
    }
    .popup-close {
        top: -10px;
        right: -10px;
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    .video-overlay h1 {
        font-size: 2rem;
    }
    .video-overlay p {
        font-size: 1.1rem;
    }
    .btn-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .title-block h2 {
        font-size: 1.8em;
    }
    .title-block p {
        font-size: 0.9em;
    }
    .values-block {
        padding: 20px;
    }
    .product-item {
        width: 100%;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-text {
        font-size: 0.85rem; /* زيادة لحجم النص للوصول */
    }
    .btn-product {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    .price-unavailable {
        font-size: 0.8rem;
    }
    .btn-cart, .btn-details {
        width: 35px;
        height: 35px;
    }
    .load-more-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    .magic-coffee-section {
        padding: 40px 0;
    }
    .magic-coffee-section h2 {
        font-size: 1.8rem;
    }
    .magic-coffee-item {
        height: 200px;
    }
    .magic-coffee-title {
        font-size: 1.4rem;
    }
    .magic-coffee-text {
        font-size: 0.85rem;
    }
}
/* Form Feedback */
.form-success, .form-error {
    display: none;
    margin-top: 1rem;
    padding: 10px;
    border-radius: 8px;
}
.form-success {
    background: #e6f4ea;
    color: var(--primary-green);
}
.form-error {
    background: #f8d7da;
    color: #721c24;
}