/* General Styles */
@font-face {
    font-family: 'GRAPHIK ARABIC BOLD';
    src: url('fonts/GRAPHIK ARABIC BOLD.OTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'GRAPHIK ARABIC';
    src: url('fonts/GRAPHIK ARABIC.OTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* Header Section */
header {
    background-color: #fb0301;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    padding-top: 60px;
    position: relative;
    animation: fadeIn 1s ease-in-out;
    width: 100%;
}
/* Language Selector */
#language-selector {
    position: absolute;
    top: 20px;
    left: 20px; /* Move to the left side */
    display: flex;
    gap: 15px;
    text-decoration: none;

  }
  
  .lang-btn {
    background: none;
    color: #fff; /* Match the nav bar text color */
    border: none;
    font-size: 1rem; /* Match nav bar font size */
    font-family: 'GRAPHIK ARABIC', Arial, sans-serif; /* Match nav bar font */
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  .lang-btn:hover {
    color: #B2181B; /* Match the hover color of nav links */
    transform: scale(1.1); /* Match hover scale effect */
  }
  
  /* Responsive Design for Language Selector */
  @media (max-width: 768px) {
    #language-selector {
      flex-direction: row;
      gap: 10px;
      top: 15px;
      left: 10px; /* Adjust left position for smaller screens */
    }
  
    .lang-btn {
      font-size: 0.9rem;
    }
  }
  
  @media (max-width: 480px) {
    #language-selector {
      flex-direction: column; /* Stack buttons vertically */
      gap: 5px;
      top: 10px;
      left: 10px; /* Adjust left position for mobile */
    }
  
    .lang-btn {
      font-size: 0.8rem; /* Slightly smaller font size */
    }
  }
  
#logo-link {
    text-decoration: none;
}

#logo {
    max-width: 150px; /* Adjust the logo size */
    height: auto;
    animation: fadeInFromBelowHeader 1.5s ease-in-out forwards;
    transition: transform 0.3s ease;
    margin-bottom: 60px;
    
}

#logo:hover {
    transform: scale(1.05); /* Slightly enlarge logo on hover */
}



/* Navigation Bar */
#nav-bar {
    border-top: 2px solid #fb0301;
    border-bottom: 2px solid #fb0301;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    width: 100%;
    background-color: #FFFFFF;
    margin: 0;
    animation: slideIn 1s ease-in-out;
    
}

#nav-bar a {
    color: #fb0301;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: normal;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: 'GRAPHIK ARABIC';


}

#nav-bar a:hover {
    color: #B2181B;
    transform: scale(1.1);
}

/* Menu Grid Section */
#menu-section {
    padding: 20px;
    margin: 0 auto;
    max-width: 1280px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 0 15px; /* Add padding for smaller screens */
    border-radius: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    width: 375px;
    height: 300px;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeInFromBelowHeader 1.5s ease-in-out forwards;
    text-decoration: none; /* Ensure no underline appears */
    

}

.menu-item:nth-child(1) { animation-delay: 0.2s; }
.menu-item:nth-child(2) { animation-delay: 0.4s; }
.menu-item:nth-child(3) { animation-delay: 0.6s; }
.menu-item:nth-child(4) { animation-delay: 0.8s; }
.menu-item:nth-child(5) { animation-delay: 1s; }
.menu-item:nth-child(6) { animation-delay: 1.2s; }
.menu-item:nth-child(7) { animation-delay: 1.4s; }
.menu-item:nth-child(8) { animation-delay: 1.6s; }
.menu-item:nth-child(9) { animation-delay: 1.8s; }

.menu-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    background-color: #f9f9f9;
}

.menu-item img {
    max-width: 100%;
    height: auto;
    margin-top: auto;
    transition: transform 0.5s ease;
    position: absolute;
    bottom: 0;
}

.menu-item img:hover {
    transform: scale(1.05);
}

.menu-item h3 {
    font-size: 50px;
    color: #000;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 0;
    transition: color 0.3s ease;
    font-family: 'GRAPHIK ARABIC BLACK', sans-serif;
    z-index: 1;
    text-decoration: none; /* Ensure no underline appears */

    
}



/* Toggle Bar */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none !important;
    cursor: pointer;
    position: absolute;
    top: 15px; /* Align with logo */
    right: 20px;
    width: 30px;
    height: 25px;
    z-index: 110; /* Keep it visible above the nav bar */
    transition: transform 0.5s ease;
    animation: fadeIn 0.3s ease-in-out;
}

/* Individual Bars */
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 3px 0;
    background-color: #fff;
    transition: transform 0.5s ease, opacity 0.5s ease, background 0.5s ease;
}

/* Hover Effect for Toggle */
.menu-toggle:hover {
    transform: rotate(0); /* Prevents rotation */
}

/* Active State */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0; /* Hide middle bar */
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Reset to Original (Non-Active) */
.menu-toggle:not(.active) span:nth-child(1),
.menu-toggle:not(.active) span:nth-child(3) {
    transform: rotate(0) translate(0, 0); /* Keep bars horizontal */
}

.menu-toggle:not(.active) span:nth-child(2) {
    opacity: 1; /* Ensure the middle bar is visible */
}



/* Hide the toggle bar on larger screens */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}



/* Animation Keyframes */
@keyframes fadeInFromBelowHeader {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Media Query Adjustments for Mobile View */
@media (max-width: 768px) {
    #menu-section {
        padding: 0 20px;
        margin: 0 auto;
        max-width: 100%;
        margin-top: 0;
    }

    #logo {
        max-width: 150px; /* Logo size */
        height: auto;
        transition: transform 0.3s ease; /* Smooth scaling */
        z-index: 110; /* Ensure the logo appears above the nav bar */
        position: relative; /* Maintain its position in the header */
    }
    
    #logo:hover {
        transform: scale(1.05); /* Slightly enlarge logo on hover */
    }
    

   /* Responsive Header */
    header {
    width: 100%; /* Ensure header spans the full width */
    margin: 0 auto; /* Center the header on mobile screens */
    text-align: center; /* Center align content inside the header */
    animation: fadeIn 1s ease-in-out;
    width: 100%; /* Ensure footer spans the full width */
    position: relative; /* Create a stacking context for the logo */
    z-index: 100; /* Ensure the header is above the nav bar */


}

    .menu-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 0;
    }

    .menu-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border-radius: 1px;
        background-color: #fff;
        height: 100px;
        overflow: hidden;
        transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
        animation: fadeInFromBelowHeaderMobile 1.5s ease-in-out forwards;
        opacity: 0;
        max-width: 100%;

    }

    .menu-item:nth-child(1) { animation-delay: 0.2s; }
    .menu-item:nth-child(2) { animation-delay: 0.4s; }
    .menu-item:nth-child(3) { animation-delay: 0.6s; }
    .menu-item:nth-child(4) { animation-delay: 0.8s; }
    .menu-item:nth-child(5) { animation-delay: 1s; }
    .menu-item:nth-child(6) { animation-delay: 1.2s; }
    .menu-item:nth-child(7) { animation-delay: 1.4s; }
    .menu-item:nth-child(8) { animation-delay: 1.6s; }
    .menu-item:nth-child(9) { animation-delay: 1.8s; }

    .menu-item img {
        max-width: 45%;
        height: auto;
        margin-top: 10px;
        margin-bottom: 0;
        position: relative;
        bottom: 0;
        transition: transform 0.8s ease-in-out;
    }

    .menu-item img:hover {
        transform: scale(1.1) rotate(-1deg);
    }

    .menu-item h3 {
        font-size: 2rem;
        margin: 0;
        padding: 45px;
        text-align: left;
        transition: color 0.5s ease, transform 0.5s ease;
    }

    .menu-item h3:hover {
        transform: translateX(5px);
    }

    .menu-item:nth-child(odd) {
        flex-direction: row-reverse;
    }


/* Minimize spacing for <br> */
br {
    display: block; /* Ensure line break behavior */
    content: ""; /* Retain default appearance */
    margin: -9px 0; /* Negative margin to reduce space */
    padding: 0; /* Remove padding if any */
    line-height: normal; /* Default line height for consistency */
}



/* Navigation Bar */
#nav-bar {
    display: flex; /* Set to flex by default */
    flex-direction: column;
    align-items: center;
    background-color: #E51F15; /* Red background */
    position: fixed; /* Cover the entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Full height to cover the screen */
    z-index: 100; /* Ensure it appears above other elements */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Prevent interaction when hidden */
    transform: translateY(-20px); /* Start slightly above */
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s; /* Smooth transition for visibility */
}


#nav-bar.active {
    opacity: 1; /* Fully visible */
    visibility: visible; /* Allow interaction */
    transform: translateY(0); /* Slide into place */
    z-index: 101; /* Ensure it appears above other content */
}

/* Links Inside Nav Bar */
#nav-bar a {
    margin: 0; /* No space around the links */
    padding: 20px 0 ; /* Minimal padding for slight separation */
    font-size: 1.8rem; /* Keep the link size */
    font-weight: bold;
    color: white; /* White text color */
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1; /* Compact text */
    opacity: 0; /* Start invisible */
    transform: translateY(10px); /* Start slightly below */
    animation: linkFadeIn 0.3s ease forwards; /* Smooth fade-in animation */
}
/* Reduce link spacing on hover */
#nav-bar a:hover {
    margin: 0; /* Eliminate extra spacing on hover */
}


/* Trigger the animation only when active */
#nav-bar.active a {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* End in place */
    animation-delay: 0.2s; /* Add a delay for a smoother staggered effect */
}

/* Hover Effects */
#nav-bar a:hover {
    color: #ffffffcc; /* Slightly lighter color on hover */
    transform: scale(1.05); /* Subtle enlargement */
    margin: 0;
}

/* Fade-In Animation for Links */
@keyframes linkFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px); /* Start slightly below */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* End in place */
    }
}




    .footer-icons {
        flex-wrap: wrap; /* Allow icons to wrap for smaller screens */
        gap: 10px; /* Adjust gap for tighter layout */
    }

    .footer-sponsor {
        position: absolute; /* Place sponsor section */
        bottom: 5px; /* Adjust distance from bottom */
        right: 5px; /* Adjust distance from right */
        display: flex; /* Keep icons in a row */
        align-items: center; /* Align icons vertically */
        gap: 2px !important; /* Minimal gap for tight spacing */
    }

    .sponsor-icon {
        width: 40px !important; /* Forcefully set to 1/4 size */
        height: 40px !important; /* Forcefully set to 1/4 size */
        object-fit: contain; /* Ensure proper scaling */
    }

    .footer-message {
        font-size: 0.9rem !important; /* Adjust text size for mobile */
    }

    .footer-copyright {
        font-size: 0.5rem; /* Smaller copyright text */
    }
}



/* Footer Styles */
footer {
    background-color: #fb0301; /* Red footer background */
    padding: 15px 10px; /* Adjust footer padding */
    text-align: center;
    color: white; /* Text color */
    margin-top: auto; /* Push footer to the bottom of the page */
    font-family: 'GRAPHIK ARABIC';
    position: relative; /* Allow absolute positioning for sponsor images */
}

/* Footer Icon Row */
.footer-icons {
    display: flex; /* Flexbox for horizontal alignment */
    justify-content: center; /* Center-align the icons */
    align-items: center; /* Vertically center-align */
    gap: 20px; /* Space between icons */
}
.footer-icons img{

    margin-bottom: 0; /* Space between icons and text */

}

/* Individual Footer Icons */
.footer-icon {
    width: 50px; /* Icon size */
    height: 50px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth hover effects */
}

.footer-icon:hover {
    transform: scale(1.1); /* Enlarge icon slightly on hover */
    opacity: 0.9; /* Slight dimming effect */
}

/* Footer Text */
.footer-message {
    margin-top: 5px ;
    font-size: 1.5rem; /* Adjusted font size for readability */
    font-weight: bold;
    letter-spacing: 1.5px; /* Slight spacing for elegance */
    margin-bottom: 10px; /* Space between text and copyright */
    z-index: 1;

}

/* Sponsor Images (Bottom Left) */
.footer-sponsor {
    position: absolute; /* Place sponsor section */
    bottom: 55px; /* Adjust distance from bottom */
    left: 20px; /* Adjust distance from left */
    display: flex; /* Display images side by side */
    gap: 10px; /* Space between the images */
    margin-bottom: 20px;
}

.sponsor-icon {
    width: 80px; /* Icon size for sponsor images */
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth hover effects */
}

.sponsor-icon:hover {
    transform: scale(1.1); /* Enlarge icon slightly on hover */
    opacity: 0.9; /* Slight dimming effect */
}

/* Copyright Text */
footer p {
    margin: 5px 0;
    font-size: 0.9rem; /* Smaller font size for copyright */
    color: white; /* White text for contrast */
}

/* Animation Keyframes for Mobile */
@keyframes fadeInFromBelowHeaderMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}