/*
Theme Name: 	Divi Child Theme
Theme URI:		http://creativehub.ltd
Description:	Child theme for the Divi Theme
Author:			Joy Sarkar
Author URI:		http://creativehub.ltd
Template:		Divi
Version:		0.1.0
*/
/* --- Fullscreen Mobile Menu Styles --- */

/* Make the mobile menu container a fixed, full-screen overlay */
.et_mobile_nav_menu {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw; /* Use viewport width */
    height: 100vh; /* Use viewport height */
    background: rgba(25, 25, 25, 0.98); /* Semi-transparent dark background */
    z-index: 999998; /* Below the close button */
    
    /* Center menu items vertically and horizontally */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Animation initial state (hidden) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px); /* Start slightly above for slide-down effect */
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

/* When the menu is active (Divi adds this class to the body) */
body.et_mobile_menu_visible .et_mobile_nav_menu {
    /* Animation visible state */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Remove default Divi list styling and set layout */
.et_mobile_nav_menu .mobile_menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

/* Style individual menu items */
.et_mobile_nav_menu .mobile_menu li {
    padding: 10px 0;
    width: 100%;
}

/* Style the menu links */
.et_mobile_nav_menu .mobile_menu li a {
    color: #ffffff;
    font-size: 24px; /* Larger font for better visibility */
    font-weight: 500;
    padding: 15px;
    display: block;
    transition: color 0.3s ease;
}

.et_mobile_nav_menu .mobile_menu li a:hover {
    color: #00b4ff; /* Change color on hover */
}

/* Style for the dropdown/sub-menu icon */
.et_mobile_nav_menu .menu-item-has-children > a:first-child::after {
    color: #fff !important;
    font-size: 28px;
    top: 12px;
}

/* --- Close Button Styles --- */
.close-menu-button {
    position: fixed; /* Fixed position relative to viewport */
    top: 25px;
    right: 30px;
    color: #ffffff;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 999999; /* Ensure it's on top of everything */
    transition: transform 0.3s ease;
}

.close-menu-button:hover {
    transform: rotate(90deg); /* Fun animation on hover */
}