:root {
    --bg-black: #000000;
    --brand-green: #54CE31;
    --text-gray: #505050;
    --nav-hover: #FFFFFF;
    --toggle-bg: #1F1F1F;
    --transition-speed: 0.3s;
}
p{
  line-height: 1.3 !important;
}

.pressx-header,
.pressx-header * {
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header Container */
.pressx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

/* Sticky State with Glassmorphism */
.pressx-header.sticky {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.navbar-pressx .nav-link {
    position: relative;
}

.navbar-pressx .nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-pressx .nav-link:hover::after,
.navbar-pressx .nav-link.active::after {
    width: 80%;
}


/* Navbar Styles */
.navbar-pressx {
    background-color: transparent;
    padding: clamp(12px, 2vw, 16px) 0;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pressx-header.sticky .navbar-pressx {
    padding: clamp(8px, 1.5vw, 12px) 0;
}

/* Fluid Container */
.navbar-inner {
    width: 100%;
    /* max-width: 1600px; */
    margin: 0 auto;
    /* padding: 0 clamp(16px, 3vw, 24px); */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: clamp(20px, 4vw, 40px);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-image {
    height: clamp(28px, 4vw, 32px);
    width: auto;
    display: block;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pressx-header.sticky .logo-image {
    height: clamp(24px, 3.5vw, 28px);
}

/* Bootstrap Navbar Collapse */
.navbar-collapse {
    flex-grow: 1;
}

/* Nav Menu */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    list-style: none;
}

/* Nav Link Styling */
.navbar-pressx .nav-link {
    color: #D5D5D5;
    font-size: clamp(0.9rem, 1.8vw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: clamp(6px, 1vw, 8px) clamp(8px, 1.5vw, 12px);
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 8px;
}

.navbar-pressx .nav-link:hover {
    color: var(--nav-hover);
    /* background: rgba(255, 255, 255, 0.05); */
}

/* Auth Toggle Switch */
.auth-toggle {
    background-color: var(--toggle-bg);
    border: 1.333px solid rgba(255, 255, 255, 0.10);
    border-radius: 100px;
    width: clamp(200px, 30vw, 200px);
    height: clamp(42px, 6vw, 40px);
    display: flex;
    position: relative;
    padding: 3px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: clamp(0.875rem, 1.5vw, 14px);
    font-weight: 500;
    line-height: 1.5;
    transition: color var(--transition-speed);
    color: var(--text-gray);
}

.slider {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: clamp(32px, 5vw, 46px);
    border: 1px solid #54CE31;
    text-decoration: none;
    background: #54CE31;
}

/* Toggle Logic */
.auth-toggle.login-active .slider {
    transform: translateX(100%);
}

.auth-toggle.signup-active .option-signup,
.auth-toggle.login-active .option-login {
    color: #000;
    font-weight: 600;
}

/* Mobile Toggler */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 10px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(84, 206, 49, 0.3);
    outline: none;
}

.navbar-toggler-icon {
    filter: invert(1);
    width: clamp(22px, 3vw, 24px);
    height: clamp(22px, 3vw, 24px);
}

/* Desktop Breakpoints */
@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
    }
    
    .me-auto {
        margin-right: auto !important;
    }
}

/* Tablet Adjustments */
@media (max-width: 1280px) {
    .navbar-pressx .nav-link {
        font-size: clamp(0.8rem, 2vw, 0.9375rem);
        padding: clamp(5px, 1vw, 6px) clamp(6px, 1.2vw, 8px);
    }
    
    .navbar-inner {
        /*width: 90%;*/
    }
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
    .pressx-header {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .navbar-inner {
        width: 92%;
        flex-wrap: wrap;
    }
    
    .navbar-pressx {
        padding: clamp(12px, 3vw, 16px) 0;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.98);
        margin: clamp(12px, 3vw, 16px) calc(-1 * clamp(16px, 3vw, 24px));
        padding: clamp(16px, 4vw, 24px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: clamp(4px, 1.5vw, 8px);
    }
    
    .nav-item {
        width: 100%;
    }
    
    .navbar-pressx .nav-link {
        width: 100%;
        padding: clamp(10px, 3vw, 12px);
        font-size: clamp(0.9rem, 4vw, 1.125rem);
        border-radius: 8px;
    }
    
    .navbar-pressx .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .auth-toggle {
        margin-top: clamp(16px, 4vw, 24px);
        width: 100%;
        max-width: 100%;
        height: clamp(48px, 10vw, 52px);
    }
    
    .toggle-option {
        font-size: clamp(0.9rem, 4vw, 1.125rem);
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        width: 95%;
        padding: 0 16px;
    }
    
    .logo-image {
        height: clamp(24px, 6vw, 28px);
    }
    
    .pressx-header.sticky .logo-image {
        height: clamp(22px, 5vw, 26px);
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .navbar-inner {
        width: 95%;
    }
    
    .logo-image {
        height: 24px;
    }
    
    .navbar-pressx .nav-link {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .auth-toggle {
        height: 48px;
        margin-top: 16px;
    }
    
    .toggle-option {
        font-size: 0.875rem;
    }
    .logo-container{
        padding: 0 !important;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .navbar-inner {
        max-width: 1600px;
    }
}

/* Ultra-Wide Desktop */
@media (min-width: 1920px) {
    .navbar-inner {
        max-width: 1800px;
    }
}

/* Accessibility */
.nav-link:focus-visible,
.logo-container:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid #54CE31;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .pressx-header,
    .navbar-pressx,
    .logo-image,
    .nav-link,
    .slider,
    .auth-toggle,
    .navbar-toggler {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .pressx-header.sticky {
        background: rgba(0, 0, 0, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.3);
    }
    
    .navbar-pressx .nav-link {
        color: #ffffff;
    }
    
    .toggle-option {
        color: #b0b0b0;
    }
}

/* Print Styles */
@media print {
    .pressx-header {
        position: relative;
        background: white;
        border-bottom: 1px solid #000;
    }
    
    .navbar-toggler {
        display: none;
    }
}

/* Smooth Scroll Padding (to account for fixed header) */
html {
    scroll-padding-top: clamp(60px, 10vw, 80px);
}

/* Additional utility classes */
.me-lg-5 {
    margin-right: 0 !important;
}

@media (min-width: 992px) {
    .me-lg-5 {
        margin-right: clamp(20px, 4vw, 40px) !important;
    }
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-lg-0 {
    margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
    .mb-lg-0 {
        margin-bottom: 0 !important;
    }
}