:root {
    --brand-primary: #008991;
    --brand-gold: #a3752e;
    --brand-black: #000000;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-blur: blur(20px);
    --glass-border: rgba(255, 255, 255, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --footer-bg: #1f2937;
    --text-secondary: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f0f2f5;
    min-height: 120vh;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    height: 90px;
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo-container img {
    height: 75px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ===== Desktop Nav Links ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    text-decoration: none;
    color: #222222;
    font-size: 13px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    line-height: 1;
}

.nav-item:hover .nav-link {
    color: #555555;
    font-weight: 400;
}

.nav-link i {
    color: #999999;
}

/* ===== Dropdown ===== */
.dropdown-content {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-radius: 0px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    border-top: 4px solid #444444;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== Mega Grid ===== */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 790px;
    gap: 12px;
    align-items: stretch;
    padding: 20px;
}

.mega-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    height: 100%;
}

.mega-item:hover {
    background: #ffffff;
    transform: translateY(-3px);
}

.mega-icon {
    font-size: 24px;
    color: #555555;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.mega-title {
    font-size: 11px;
    font-weight: 400;
    color: var(--brand-black);
    text-transform: uppercase;
    display: block;
    margin-top: auto;
    line-height: 1.2;
}

/* Standard (non-grid) dropdown items */
.mega-item[style*="flex-direction: row"],
.mega-item[style*="flex-direction:row"] {
    padding: 12px 20px;
    background: transparent;
    border-radius: 0;
}

.mega-item[style*="flex-direction: row"]:hover,
.mega-item[style*="flex-direction:row"]:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: none;
    color: #333333;
}

.mega-item[style*="flex-direction: row"] .mega-title,
.mega-item[style*="flex-direction:row"] .mega-title {
    font-size: 13px;
    color: var(--brand-black);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.mega-item[style*="flex-direction: row"]:hover .mega-title,
.mega-item[style*="flex-direction:row"]:hover .mega-title {
    color: #333333;
}

/* ===== Nav Actions ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.btn-connect {
    background: #222222;
    color: #fff !important;
    padding: 18px 25px;
    height: 44px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-connect:hover {
    background: #555555;
    color: #ffffff !important;
}

/* ===== Mobile Toggle ===== */
.mobile-toggle {
    display: none;
    font-size: 26px;
    color: #333333;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
}

/* ===== Overlay ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== Mobile Sidebar ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    z-index: 2100;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 20px 25px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--glass-border);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-close-btn {
    align-self: flex-end;
    font-size: 30px;
    color: var(--brand-black);
    cursor: pointer;
    margin-bottom: 30px;
    transition: var(--transition);
}

.mobile-close-btn:hover {
    color: var(--brand-primary);
}

/* ===== Mobile Nav List ===== */
.mobile-nav-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-item a {
    text-decoration: none;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 5px;
    color: var(--brand-black);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-header i {
    font-size: 12px;
    transition: transform 0.3s;
}

.mobile-nav-item.open .mobile-nav-header {
    color: var(--brand-primary);
    font-weight: 700;
}

.mobile-nav-item.open .mobile-nav-header i {
    transform: rotate(180deg);
}

/* ===== Mobile Dropdown ===== */
.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 137, 145, 0.04);
    border-radius: 8px;
    border-left: 3px solid var(--brand-primary);
    margin-left: 5px;
}

.mobile-nav-item.open .mobile-dropdown {
    max-height: 600px;
    margin-bottom: 15px;
}

.mobile-dropdown-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--brand-black);
    font-size: 14px;
    font-weight: 300;
    transition: var(--transition);
}

.mobile-dropdown-link:hover {
    color: var(--brand-primary);
    padding-left: 26px;
}

/* ===== Responsive ===== */
@media (max-width: 1150px) {
    .nav-links,
    .nav-actions .btn-connect {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .navbar {
        height: 90px;
    }
}

.hero {
    padding-top: 150px;
    text-align: center;
    padding-inline: 20px;
}
