/* ============================================
   EY Navigation Menu Clone - CSS Styles
   ============================================ */

/* CSS Variables */
:root {
    --ey-dark: #2e2e38;
    --ey-darker: #23232d;
    --ey-yellow: #FDB940;
    --ey-white: #ffffff;
    --ey-gray: #747480;
    --ey-light-gray: #9897a0;
    --ey-border: #46464f;
    --header-height: 60px;
    --transition-speed: 0.3s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================
   Main Header & Navigation
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-main {
    background-color: var(--ey-dark);
    height: var(--header-height);
    border-bottom: 1px solid var(--ey-border);
}

.nav-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ey-logo {
    width: 40px;
    height: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ey-text {
    display: none;
}

.tagline {
    font-size: 11px;
    color: var(--ey-white);
    line-height: 1.3;
    opacity: 0.9;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 40px;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-link:hover {
    color: var(--ey-yellow);
}

.nav-item.active .nav-link::after,
.nav-item:hover .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--ey-yellow);
}

/* Right Navigation */
.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ey-white);
    font-size: 14px;
    transition: color var(--transition-speed);
}

.nav-icon-link:hover {
    color: var(--ey-yellow);
}

.nav-icon-link i {
    font-size: 16px;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ey-white);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.country-selector:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.country-selector i:first-child {
    font-size: 18px;
}

.country-selector .bi-chevron-down,
.country-selector .bi-chevron-up {
    font-size: 12px;
    transition: transform var(--transition-speed);
}

.country-selector.open .bi-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Header Icons */
.mobile-header-icons {
    display: none;
    align-items: center;
    gap: 20px;
}

.mobile-header-icons .mobile-search-btn,
.mobile-header-icons .mobile-menu-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header-icons .mobile-search-btn i,
.mobile-header-icons .mobile-menu-btn i {
    font-size: 22px;
}

/* Divider line between search and menu */
.mobile-header-icons .divider {
    width: 1px;
    height: 24px;
    background-color: var(--ey-border);
}

/* Mobile Toggle - Hide by default */
.mobile-toggle {
    display: none;
}

/* ============================================
   Mega Menu
   ============================================ */
.mega-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #233c35;
    border-bottom: 1px solid var(--ey-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-speed) ease;
    max-height: calc(100vh - var(--header-height));
    overflow: hidden;
    z-index: 1000;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-container {
    display: grid;
    grid-template-columns: 482px 1fr 740px;
    min-height: 500px;
    max-height: calc(100vh - var(--header-height) - 40px);
}

/* Mega Left Column */
.mega-left {
    padding: 50px 40px;
    border-right: 1px solid var(--ey-border);
}

.mega-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--ey-white);
    margin-bottom: 25px;
}

.mega-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ey-light-gray);
    margin-bottom: 35px;
}

.explore-btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: transparent;
    border: 1px solid var(--ey-white);
    color: var(--ey-white);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.explore-btn:hover {
    background-color: var(--ey-white);
    color: var(--ey-dark);
}

/* Mega Middle Column */
.mega-middle {
    padding: 30px 0;
    border-right: 1px solid var(--ey-border);
    overflow-y: auto;
    position: relative;
}

.mega-list {
    padding: 0;
    margin-left: 0px;
}

.mega-item {
    position: relative;
    list-style: none;
}

.mega-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    color: var(--ey-white);
    font-size: 20px;
    font-weight: 400;
    transition: all var(--transition-speed);
    border-left: 4px solid transparent;
}

.mega-item a:hover,
.mega-item.active a {
    background-color: rgba(255, 255, 255, 0.05);
}

.mega-item.active a {
    
    border-left:10px solid var(--ey-yellow);
}

.mega-item a i {
    font-size: 30px;
    opacity: 0.6;
    transition: all var(--transition-speed);
}

.mega-item a:hover i,
.mega-item.active a i {
    opacity: 1;
    transform: translateX(4px);
    color: var(--ey-white);
}

.scroll-up-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--ey-border);
    color: var(--ey-white);
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-up-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mega Right Column */
.mega-right {
    padding: 40px;
    background-color: #233c35;
    overflow-y: auto;
}

.submenu {
    display: none;
}

.submenu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.submenu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0px;
}

.back-link {
    color: var(--ey-light-gray);
    font-size: 14px;
    transition: color var(--transition-speed);
}

.back-link:hover {
    color: var(--ey-yellow);
}

.submenu-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--ey-white);
    margin-bottom: 0px;
}

.submenu-list {
    padding: 0;
    margin: 0px;
}

.submenu-list li {
    margin-bottom: 4px;
    list-style: none;
    margin: 0px 30px;
}

.submenu-list li a {
    display: block;
    padding: 10px 0;
    color: var(--ey-white);
    font-size: 14px;
    transition: color var(--transition-speed);
    margin-bottom: 0px;
}

.submenu-list li a:hover {
    color: var(--ey-yellow);
}

.see-all-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 0;
    color: var(--ey-yellow);
    font-size: 14px;
    font-weight: 500;
    transition: opacity var(--transition-speed);
}

.see-all-link:hover {
    opacity: 0.8;
}

/* Menu Overlay */
.menu-overlay {
    
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Country Selector Panel
   ============================================ */
.country-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background-color: var(--ey-dark);
    z-index: 2000;
    transition: right var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}

.country-panel.active {
    right: 0;
}

.country-panel-header {
    position: relative;
}

.country-panel-yellow-bar {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--ey-yellow);
}

.country-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
}

.country-panel-title h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--ey-white);
}

.country-panel-close {
    background: none;
    border: none;
    color: var(--ey-white);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.country-panel-close:hover {
    color: var(--ey-yellow);
}

.country-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 25px 25px;
}

.country-search {
    margin-bottom: 20px;
}

.country-search input {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--ey-border);
    color: var(--ey-white);
    font-size: 14px;
    outline: none;
}

.country-search input::placeholder {
    color: var(--ey-light-gray);
}

.country-search input:focus {
    border-bottom-color: var(--ey-yellow);
}

.country-list {
    display: flex;
    flex-direction: column;
}

.country-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--ey-border);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.country-item:hover {
    padding-left: 10px;
}

.country-item-name {
    color: var(--ey-white);
    font-size: 14px;
}

.country-item-name strong {
    font-weight: 600;
}

.country-item i {
    color: var(--ey-white);
    font-size: 18px;
}

.country-item.selected {
    background-color: transparent;
}

.country-section-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ey-light-gray);
    padding: 20px 0 10px;
    margin-top: 10px;
}

.country-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.country-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Country Panel Scrollbar */
.country-panel-body::-webkit-scrollbar {
    width: 6px;
}

.country-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.country-panel-body::-webkit-scrollbar-thumb {
    background-color: var(--ey-border);
    border-radius: 3px;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ey-dark);
    z-index: 1500;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--ey-border);
}

.mobile-menu-link {
    display: block;
    padding: 22px 25px;
    color: var(--ey-yellow);
    font-size: 22px;
    font-weight: 400;
    transition: all var(--transition-speed);
}

.mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    border-top: 1px solid var(--ey-border);
    padding: 0;
}

.mobile-footer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    color: var(--ey-white);
    font-size: 14px;
    border-bottom: 1px solid var(--ey-border);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.mobile-footer-item:last-child {
    border-bottom: none;
}

.mobile-footer-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-footer-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-footer-item-left i {
    font-size: 20px;
}

.mobile-footer-item .bi-chevron-up {
    font-size: 14px;
}

/* ============================================
   Main Content (Demo)
   ============================================ */
.main-content {
    padding-top: calc(var(--header-height) + 60px);
}

.hero-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 30px;
    text-align: center;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 300;
    color: var(--ey-dark);
    margin-bottom: 25px;
}

.hero-section p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ey-gray);
}

/* ============================================
   Scrollbar Styles
   ============================================ */
.mega-middle::-webkit-scrollbar,
.mega-right::-webkit-scrollbar {
    width: 6px;
}

.mega-middle::-webkit-scrollbar-track,
.mega-right::-webkit-scrollbar-track {
    background: transparent;
}

.mega-middle::-webkit-scrollbar-thumb,
.mega-right::-webkit-scrollbar-thumb {
    background-color: var(--ey-border);
    border-radius: 3px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .mega-container {
        grid-template-columns: 250px 1fr 280px;
    }
    
    .mega-left {
        padding: 40px 30px;
    }
    
    .mega-title {
        font-size: 28px;
    }
    
    .mega-item a {
        padding: 14px 30px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    .mobile-header-icons {
        display: flex;
    }
    
    .mega-menu {
        display: none;
    }

    .country-panel {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .tagline {
        display: none;
    }
    
    .ey-text {
        display: block;
        font-size: 24px;
        font-weight: 700;
        color: var(--ey-white);
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }
}

/* ============================================
   Active States & Animations
   ============================================ */
.nav-item.menu-active .nav-link {
    color: var(--ey-yellow);
}

.nav-item.menu-active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--ey-yellow);
}

/* Hover effect on mega items */
.mega-item a span {
    position: relative;
    color: var(--ey-white);
}

.mega-item a span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--ey-yellow);
    transition: width var(--transition-speed);
}

.mega-item a:hover span::after {
    width: 100%;
}

/* Body scroll lock when menu open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   Mobile Menu Views & Accordion
   ============================================ */
.mobile-menu-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
    background-color: var(--ey-dark);
}

.mobile-menu-view.active {
    transform: translateX(0);
}

#mobile-main-view {
    transform: translateX(0);
}

#mobile-main-view.slide-out {
    transform: translateX(-100%);
}

/* Mobile Submenu Header */
.mobile-submenu-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--ey-border);
}

.mobile-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--ey-yellow);
    font-size: 16px;
    cursor: pointer;
    padding: 5px 0;
}

.mobile-back-btn i {
    font-size: 14px;
}

.mobile-back-btn:hover {
    opacity: 0.8;
}

/* Mobile Submenu Body */
.mobile-submenu-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Mobile Explore Button */
.mobile-explore-btn {
    display: block;
    margin: 25px 20px;
    padding: 16px 30px;
    background-color: var(--ey-darker);
    border: 1px solid var(--ey-border);
    color: var(--ey-white);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-speed);
}

.mobile-explore-btn:hover {
    background-color: var(--ey-white);
    color: var(--ey-dark);
}

/* Mobile Accordion */
.mobile-accordion {
    border-top: 1px solid var(--ey-border);
}

.mobile-accordion-item {
    border-bottom: 1px solid var(--ey-border);
}

.mobile-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.mobile-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.mobile-accordion-header span {
    color: var(--ey-white);
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    padding-right: 15px;
}

.mobile-accordion-header i {
    color: var(--ey-white);
    font-size: 18px;
    transition: transform var(--transition-speed);
}

.mobile-accordion-item.active .mobile-accordion-header {
    border-bottom: 1px solid var(--ey-border);
}

.mobile-accordion-item.active .mobile-accordion-header i {
    transform: rotate(45deg);
}

/* Mobile Accordion Content */
.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: var(--ey-darker);
    transition: max-height 0.4s ease;
}

.mobile-accordion-item.active .mobile-accordion-content {
    max-height: 1000px;
}

.mobile-accordion-content a {
    display: block;
    padding: 14px 20px 14px 30px;
    color: var(--ey-white);
    font-size: 14px;
    border-bottom: 1px solid var(--ey-border);
    transition: all var(--transition-speed);
}

.mobile-accordion-content a:last-child {
    border-bottom: none;
}

.mobile-accordion-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--ey-yellow);
}

.mobile-accordion-content a.see-all {
    color: var(--ey-white);
    font-weight: 500;
    padding-top: 16px;
    padding-bottom: 16px;
}

.mobile-accordion-content a.see-all:hover {
    color: var(--ey-yellow);
}

/* Mobile Submenu Scrollbar */
.mobile-submenu-body::-webkit-scrollbar {
    width: 4px;
}

.mobile-submenu-body::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-submenu-body::-webkit-scrollbar-thumb {
    background-color: var(--ey-border);
    border-radius: 2px;
}
