/* Nav Menu */
.nav {
    margin-left: auto;
}

.nav a {
    font-size: 16px;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--slate-700) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.4s ease;
    text-align: center;
}

.nav-link:hover {
    color: var(--blue-600) !important;
}

/* Mega Menu Styles */
.nav-item {
	position: relative;
}

.nav-item.has-dropdown > .nav-link::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 0.5rem;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	transition: transform 0.3s ease;
    vertical-align: middle;
}

.nav-item.has-dropdown:hover > .nav-link::after {
	transform: rotate(180deg);
}

.mega-menu {
	position: fixed;
	top: 65px;
	left: 0;
	min-height: 600px;
	height: 70vh;
	background: #0d1b2f;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	padding: 2.5rem;
	padding-bottom: 1rem;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-item:hover .mega-menu {
	opacity: 1;
	visibility: visible;
}

.mega-menu-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	max-width: 1400px;
	height: 100%;
	margin: 0 auto;
}

/* Categories Section */
.mega-menu-categories {
	border-right: 1px solid #8cbdff;
}

.mega-menu-category {
	margin-bottom: 0.5rem;
}

.mega-menu-category-title,
.mega-menu-category-link {
	font-size: 1rem;
	font-weight: 600;
	color: #cbdbf5;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid transparent;
}

.mega-menu-category-title:hover,
.mega-menu-category-title.active {
	background: #60a5fa99;
	color: #dbdbdb;
	border-color: #8cbdff;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
    border-right-width: 0;
}

.mega-menu-category-title::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid currentColor;
	transition: transform 0.3s ease;
	opacity: 0.6;
}

.mega-menu-category-title.active::after {
	transform: rotate(-90deg);
	opacity: 1;
}

/* Services Section */
.mega-menu-services {
    overflow: auto;
	min-height: 300px;
    height: 100%;
	padding: 0 1rem 0 2rem;
}

.mega-menu-service-group {
	display: none;
}

.mega-menu-service-group.active {
	display: block;
	animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mega-menu-service-group h4 {
	font-size: 1.375rem;
	font-weight: 700;
	color: #a4bee8;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #3b82f6;
	position: relative;
}

.mega-menu-service-group h4::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 60px;
	height: 2px;
	background: #60a5fa;
}

/* Service List - Row Layout */
.mega-menu-service-list {
	display: grid;
	gap: 0.75rem;
}

.mega-menu-service-package {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr 1fr;
}

.mega-menu-service-item {
	border-radius: 10px;
	transition: all 0.3s ease;
	border: 1px solid #e2e8f0;
	background: #fefefe;
	position: relative;
	overflow: hidden;
}

.mega-menu-service-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: #3b82f6;
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.mega-menu-service-item:hover {
	background: #f8fafc;
	border-color: #3b82f6;
	transform: translateX(8px);
	box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.mega-menu-service-item:hover::before {
	transform: scaleY(1);
}

.mega-menu-service-item a {
	padding: 1.25rem 1.5rem;
	text-decoration: none;
	color: inherit;
	display: block;
}

.mega-menu-service-item h5 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.5rem;
	transition: color 0.3s ease;
}

.mega-menu-service-item:hover h5 {
	color: #3b82f6;
}

.mega-menu-service-item p,
.mega-menu-service-item ol {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

.mega-menu-service-item ol {
	margin-left: 2rem;
}

/* Token Package Styles */
.token-package-item {
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	border: 2px solid #d97706;
	color: #92400e;
}

.token-package-item:hover {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	border-color: #b45309;
	color: #78350f;
}

.token-package-item h5 {
	color: #92400e;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.token-package-item p {
	color: #2d1e13;
}

.token-package-item:hover h5 {
	color: #78350f;
}

.token-package-item::before {
	background: #d97706;
}

/* Premium Token Package */
.premium-token-package {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
	border: 2px solid #6d28d9;
	color: white;
}

.premium-token-package:hover {
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	border-color: #5b21b6;
}

.premium-token-package h5,
.premium-token-package p {
	color: white;
}

.premium-token-package:hover h5 {
	color: #e9d5ff;
}

.premium-token-package::before {
	background: #a855f7;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 6px;
	transition: background 0.3s ease;
	margin-left: auto;
}

.mobile-menu-btn:hover {
	background: #f1f5f9;
}

.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	max-width: 420px;
	height: 100vh;
	background: white;
	z-index: 9999;
	transition: right 0.3s ease;
	overflow-y: auto;
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
	right: 0;
}

.mobile-menu-header {
	padding: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
}

.mobile-menu-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #64748b;
	padding: 0.5rem;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.mobile-menu-close:hover {
	background: #f1f5f9;
	color: #1e293b;
}

.mobile-menu-content {
	padding: 1.5rem;
}

.mobile-nav-item {
	margin-bottom: 0.5rem;
}

.mobile-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	color: #1e293b;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.mobile-nav-link:hover {
	background: #f1f5f9;
	color: #3b82f6;
	border-color: #e2e8f0;
}

.mobile-nav-link.has-dropdown::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	transition: transform 0.3s ease;
}

.mobile-nav-link.has-dropdown.active::after {
	transform: rotate(180deg);
}

.mobile-submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	background: #f8fafc;
	border-radius: 10px;
	margin-top: 0.75rem;
	border: 1px solid #e2e8f0;
}

.mobile-submenu.active {
	max-height: 1200px;
}

.mobile-submenu-category {
	border-bottom: 1px solid #e2e8f0;
}

.mobile-submenu-category:last-child {
	border-bottom: none;
}

.mega-menu-sep {
	margin: 1rem 0;
	border-top: 2px solid #8cbdff;
}

.mega-menu-category-link {
	background-color: #76a0d0;
	margin-right: 1rem;
	color: #fff !important;
}

.mega-menu-category-link:hover {
	background-color: #537193;
}

.mobile-submenu-title {
	padding: 1.25rem 1.5rem;
	font-weight: 600;
	color: #1e293b;
	background: #f1f5f9;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.3s ease;
	border-bottom: 1px solid #e2e8f0;
}

.mobile-submenu-title:hover {
	background: #e2e8f0;
	color: #3b82f6;
}

.mobile-submenu-title::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 3px solid currentColor;
	transition: transform 0.3s ease;
}

.mobile-submenu-title.active::after {
	transform: rotate(180deg);
}

.mobile-submenu-title.spec {
	background-color: #96c6f7;
}

.mobile-submenu-title.spec::after {
	content: none;
}

.mobile-submenu-items {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: white;
}

.mobile-submenu-items.active {
	max-height: 600px;
}

.mobile-submenu-item {
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.3s ease;
}

.mobile-submenu-item:last-child {
	border-bottom: none;
}

.mobile-submenu-item:hover {
	background: #f8fafc;
}

.mobile-submenu-item a {
	color: #64748b;
	text-decoration: none;
	font-size: 0.95rem;
	display: block;
	transition: color 0.3s ease;
	font-weight: 500;
	padding: 1rem 1.5rem;
}

.mobile-submenu-item a:hover {
	color: #3b82f6;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.mega-menu-grid {
		grid-template-columns: 250px 1fr;
	}
}

@media (max-width: 1024px) {
	.mega-menu-grid {
		grid-template-columns: 220px 1fr;
	}

	.mega-menu-service-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 970px) {
	.mega-menu {
		display: none;
	}
	
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
	.mobile-menu {
		max-width: 100%;
	}
	
	.mobile-menu-content {
		padding: 1rem;
	}
}