/* ============================================================
   TOP SECURITY BAR
============================================================ */
.security-bar {
    background: linear-gradient(90deg, var(--cyber-purple), var(--electric-blue), var(--cyber-purple));
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    padding: 0.5rem 1rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.security-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.security-bar-sep {
    opacity: 0.5;
    margin: 0 0.25rem;
}

/* ============================================================
   STICKY HEADER / NAV
============================================================ */
header {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(10, 14, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: none;
    margin: 0;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
    text-decoration: none;
    line-height: 1;
    margin-left: -0.5rem;
}

/* Shield Logo Treatment */
.logo-img-wrap {
    width: 91px;
    height: 91px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -14px;
}

.logo-img {
    height: 91px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(180, 200, 220, 0.4)) drop-shadow(0 0 14px rgba(0, 217, 255, 0.25)) drop-shadow(0 0 24px rgba(232, 168, 56, 0.12));
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    line-height: 1;
    padding: 26px 0 8px;
}

.logo-ecc {
    font-family: var(--font-mono);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.logo-gold-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    border-radius: 1px;
}

.logo-company-name {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--electric-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active-link {
    color: var(--electric-blue);
}

.nav-links a.active-link::after {
    width: 100%;
}

.nav-links a.nav-cta {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    color: #0a0e1a !important;
    padding: 0.6rem 1.75rem;
    border-radius: 7px;
    font-weight: 600 !important;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--glow-amber);
    display: inline-block;
    line-height: 1.4;
}

.nav-links a.nav-cta::after {
    display: none !important;
}

.nav-links a.nav-cta:hover {
    color: #0a0e1a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(232, 168, 56, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--electric-blue);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   DROPDOWN NAVIGATION
============================================================ */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '';
    position: static;
    display: inline-block;
    width: 6px;
    height: 6px;
    background: none;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform 0.25s ease;
}

.has-dropdown:hover > a::after,
.has-dropdown.open > a::after {
    width: 6px;
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

.has-dropdown > a.active-link::after {
    width: 6px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(14, 18, 34, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu .nav-logout-btn:hover {
    background: rgba(0, 217, 255, 0.08);
    color: var(--electric-blue) !important;
}

.nav-logout-btn {
    display: block;
    width: 100%;
    padding: 0.6rem 1.25rem;
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--electric-blue);
}

.breadcrumb span[aria-hidden] {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

.breadcrumb > span:last-child {
    color: var(--electric-blue);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    color: #0a0e1a;
    padding: 1.1rem 2.75rem;
    border-radius: 7px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px var(--glow-amber);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(232, 168, 56, 0.55);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    padding: 1.1rem 2.75rem;
    border-radius: 7px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid var(--electric-blue);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--base-bg);
    box-shadow: 0 4px 24px var(--glow-blue);
    transform: translateY(-3px);
}

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(123, 47, 255, 0.12));
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: var(--electric-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--electric-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #0b1530, var(--base-bg));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 217, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(123, 47, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.cta-section > .container > p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Hero/CTA Button Group */
.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cta-section .hero-buttons {
    justify-content: center;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--electric-blue);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-logo {
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
    text-decoration: none;
}

.footer-logo-img-wrap {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -10px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.2)) drop-shadow(0 0 20px rgba(232, 168, 56, 0.1));
}

.footer-logo-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    line-height: 1;
    padding: 20px 0 6px;
}

.footer-logo-ecc {
    font-family: var(--font-mono);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.footer-logo-gold-line {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--amber), var(--amber-light));
    border-radius: 1px;
}

.footer-logo-company-name {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ============================================================
   FLASH MESSAGES
============================================================ */
.flash-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 0.4s ease;
}

.flash-message.success {
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid var(--success);
    color: var(--success);
}

.flash-message.error {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid #ff6464;
    color: #ff6464;
}

.flash-dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 0 0.25rem;
}

.flash-dismiss:hover {
    opacity: 1;
}

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

/* ============================================================
   RESPONSIVE - SHARED
============================================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .security-bar {
        font-size: 0.6rem;
        padding: 0.4rem 0.5rem;
        letter-spacing: 0.5px;
    }

    .security-bar-sep {
        display: none;
    }

    .security-bar-inner {
        gap: 0.25rem;
    }

    .logo-img-wrap {
        width: 70px;
        height: 70px;
    }

    .logo-img {
        height: 70px;
    }

    .logo-ecc {
        font-size: 1.35rem;
        letter-spacing: 2px;
    }

    .logo-company-name {
        font-size: 0.45rem;
        letter-spacing: 1.5px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.35s ease;
        pointer-events: none;
        z-index: 999;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Mobile dropdown overrides */
    .has-dropdown > a::after {
        margin-left: 8px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        border-radius: 8px;
        box-shadow: none;
        padding: 0.25rem 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown-menu::before {
        display: none;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 0.5rem 0;
        transform: none;
    }

    .dropdown-menu a {
        padding: 0.5rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        text-align: center;
        width: 100%;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}
