* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    position: fixed;
    top: 0;
    z-index: 1001;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Slight shadow for separation */
    width: 100%;
}

.nav-container {
    width: 100%;
    padding: 0 clamp(8px, 2vw, 24px);
    display: flex;
    justify-content: space-between;
    /* Space for hamburger at far right */
    align-items: center;
    height: 60px;
    position: relative;
    box-sizing: border-box;
}

.nav-left-group {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 24px);
    flex-shrink: 0;
}

/* Separator spacing handled by nav-left-group gap */

.nav-resume-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1vw, 8px);
    padding: clamp(6px, 1.2vw, 8px) clamp(10px, 2vw, 16px);
    background: #fff;
    border-radius: 10px;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-resume-icon:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.nav-resume-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-resume-text {
    font-size: clamp(11px, 1.2vw, 13px);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: inherit;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-logo {
    font-size: clamp(13px, 2vw, 18px);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    /* Prevent logo from shrinking and causing overlap */
}

@media (max-width: 1024px) {
    .logo-title-full {
        display: none;
    }

    .logo-title-short {
        display: inline;
    }
}

.logo-name {
    color: #2563eb;
    margin-right: 4px;
}

.logo-title {
    color: #1d1d1f;
    font-weight: 500;
}

.logo-title-full {
    display: inline;
}

.logo-title-short {
    display: none;
}

.logo-pipe {
    margin: 0 clamp(4px, 1vw, 12px);
    color: rgba(0, 0, 0, 0.15);
    font-weight: 300;
}

/* Consolidated into nav-left-group */

.nav-icons-group {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 12px);
    margin-left: clamp(4px, 1.2vw, 12px);
    flex-shrink: 0;
}

.nav-linkedin-icon,
.nav-substack-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #0077b5;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-substack-icon {
    color: #FF6719;
}

.nav-linkedin-icon:hover,
.nav-substack-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.nav-linkedin-icon svg,
.nav-substack-icon svg {
    width: 100%;
    height: 100%;
}

.hamburger-menu {
    display: flex;
    /* Always show */
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    gap: 6px;
    background: transparent;
    border: none;
    z-index: 2000;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: #1d1d1f !important;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Notification Ribbons as Marquee */
#notification-container {
    width: 100%;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: hidden;
    background: #dc2626;
    height: 38px;
    display: none;
    /* Hidden by default, shown by JS */
    align-items: center;
}

body.has-banner .video-section {
    padding-top: 140px;
    /* Adjust for banner height */
}

.notification-bar {
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bar span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll var(--marquee-speed, 30s) linear infinite;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-sizing: content-box;
    /* Fix for global border-box shrinking content to 0px */
    max-width: none;
    /* Allow it to be wider than container for scrolling */
    overflow: visible;
}

.notification-bar:hover span {
    animation-play-state: paused;
    cursor: pointer;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.notification-bar a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.notification-bar a:hover {
    text-decoration: underline;
}


/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu ul {
    list-style: none;
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu a,
.submenu-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu a:hover,
.submenu-title:hover {
    background: #f5f5f7;
    color: #0071e3;
}

.submenu {
    display: none;
    background: #fbfbfd;
    padding-left: 20px;
}

.menu-item-with-submenu:hover .submenu {
    display: block;
}

.submenu a {
    font-size: 14px;
    color: #86868b;
}

.mobile-menu-footer {
    padding: 32px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f5f5f7;
}

@media (max-width: 768px) {
    .logo-title-full {
        display: none;
    }

    .logo-title-short {
        display: inline;
    }

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

    .logo-pipe {
        margin: 0 8px;
    }

    .nav-icons-group {
        margin-left: 8px;
        gap: 8px;
    }

    .nav-resume-text {
        display: none;
    }

    .nav-resume-icon {
        padding: 8px;
        border-radius: 50%;
    }

    .hamburger-menu {
        display: flex;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Sub-Header Styles */
.admin-subheader {
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 60px;
    z-index: 99;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.admin-subheader-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
}

.admin-tab {
    padding: 8px 16px;
    color: #6e6e73;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-tab:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
}

.admin-tab.active {
    background: #0071e3;
    color: white;
}

.logout-btn {
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1d1d1f;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    background: white;
}

.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #dc2626;
}