/* 
 * Qollision Custom Stylesheet - Quantum Tech Design
 * Fonts: Plus Jakarta Sans (Headings), Inter (Body), Fira Code (Monospace)
 */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap');

/* Design Tokens & Variables */
:root {
    --bg-dark: #030712;
    --bg-card: rgba(8, 10, 18, 0.6);
    --primary-accent: #ff9933;
    --primary-accent-glow: rgba(255, 153, 51, 0.4);
    --primary-cyan: #00F2FE;
    --primary-cyan-glow: rgba(0, 242, 254, 0.4);
    --techno-green: #10b981;
    --techno-green-glow: rgba(16, 185, 129, 0.3);
    --text-white: #ffffff;
    --text-muted: #8A8F98;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --navbar-height: 80px;
}

/* Reset and Core Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: transparent;
    color: var(--text-white);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* FIXED CAD VIEWPORT BACKGROUND LAYER */
.cad-viewport-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* Precision 2D/3D Orthographic CAD Grid Matrix */
.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layer 1: 24px Minor grid lines (rgba 255,255,255,0.05) */
    /* Layer 2: 120px Major axis lines (rgba 255,255,255,0.08) */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 
        24px 24px, 
        24px 24px, 
        120px 120px, 
        120px 120px;
    pointer-events: none;
}

/* Circular Wave Blueprint SVG */
.blueprint-svg-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Optional subtle rotation animation to make it feel alive */
.rotate-slow {
    transform-origin: 800px 500px;
    animation: rotateBlueprint 180s linear infinite;
}

@keyframes rotateBlueprint {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typography Rules */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

/* Fixed Navigation Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img-brand {
    height: 28px;
    width: auto;
    filter: invert(1) drop-shadow(0 0 5px var(--primary-accent-glow));
    transition: all 0.3s ease;
}

.logo-container:hover .logo-img-brand, .footer-logo:hover .logo-img-brand {
    transform: scale(1.08) rotate(3deg);
    filter: invert(1) drop-shadow(0 0 10px var(--primary-accent));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-white);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.75rem 0.5rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-accent);
    box-shadow: 0 0 8px var(--primary-accent-glow);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover:not(.nav-cta)::after, .nav-links a.active:not(.nav-cta)::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--primary-accent);
    border: 1px solid var(--primary-accent);
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 153, 51, 0.1);
    min-height: 44px;
}

.nav-cta:hover {
    background: var(--primary-accent);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-accent-glow);
    transform: translateY(-1px);
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex !important;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

/* Main Container spacing */
main {
    padding-top: var(--navbar-height);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary-accent);
    background: rgba(255, 153, 51, 0.08);
    border: 1px solid rgba(255, 153, 51, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-accent);
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    width: 100%;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary-accent);
    color: var(--bg-dark);
    border: 1px solid var(--primary-accent);
    box-shadow: 0 0 20px var(--primary-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 153, 51, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Performance Metrics Matrix */
.metrics-row {
    display: flex;
    gap: 3.5rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Interactive Command Console Widget */
.console-widget {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 153, 51, 0.08);
    height: 480px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.console-widget:focus-within, .console-widget:hover {
    border-color: rgba(255, 153, 51, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 153, 51, 0.15);
}

.console-header {
    background: rgba(3, 7, 18, 0.5);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.console-dot.red { background-color: #ef4444; }
.console-dot.yellow { background-color: #eab308; }
.console-dot.green { background-color: #22c55e; }

.console-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.console-status-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--techno-green);
    box-shadow: 0 0 8px var(--techno-green);
    animation: ledBlink 2s infinite;
}

@keyframes ledBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.console-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-white);
    text-align: left;
}

/* Custom Scrollbar for Console */
.console-body::-webkit-scrollbar {
    width: 6px;
}
.console-body::-webkit-scrollbar-track {
    background: transparent;
}
.console-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.console-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.console-log-line {
    margin-bottom: 0.4rem;
    word-break: break-all;
    white-space: pre-wrap;
}

.console-prompt-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.console-prompt-symbol {
    color: var(--primary-accent);
    font-weight: 700;
}

.console-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex: 1;
}

.console-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--primary-accent);
    box-shadow: 0 0 5px var(--primary-accent);
    animation: cursorBlink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes cursorBlink {
    from, to { background-color: transparent; box-shadow: none; }
    50% { background-color: var(--primary-accent); box-shadow: 0 0 5px var(--primary-accent); }
}

/* Terminal text highlighting */
.c-cyan { color: var(--primary-accent); }
.c-green { color: var(--techno-green); }
.c-muted { color: var(--text-muted); }
.c-bold { font-weight: 700; }

/* Scroll down indicator - Hidden by default (mobile-first), only displayed on large desktop viewports */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

@media (min-width: 1200px) {
    .scroll-indicator {
        display: flex;
    }
}

.scroll-indicator:hover {
    color: var(--text-white);
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 9999px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 1.5s infinite;
}

@keyframes wheelScroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

/* Team Section */
.team-section {
    position: relative;
    padding: 8rem 2rem 10rem;
    max-width: 1300px;
    margin: 0 auto;
}

.team-header-container {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #AEAEB2;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: clamp(1.85rem, 4vw + 0.8rem, 3.25rem);
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.title-glow {
    color: var(--primary-accent);
    text-shadow: 0 0 25px rgba(255, 153, 51, 0.45);
}

.section-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Team Profile Flex Layout */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.25rem;
}

/* Glassmorphic Profile Card */
.profile-card {
    width: calc(33.333% - 1.5rem);
    min-width: 320px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 153, 51, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 153, 51, 0.12);
}

/* Role Chip Badge */
.role-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    color: #E5E5EA;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Avatar Frame with Cyber Glow ring */
.avatar-frame {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-frame::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transition: all 0.4s ease;
}

.profile-card:hover .avatar-frame::before {
    border-color: var(--primary-accent);
    box-shadow: 0 0 15px var(--primary-accent-glow);
    transform: scale(1.03);
}

.avatar-img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    border: 2px solid var(--bg-dark);
}

/* Metadata Layout */
.member-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.35rem;
}

.member-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #AEAEB2;
    margin-bottom: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.member-bio {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* LinkedIn shortcut button */
.linkedin-btn {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
}

.linkedin-btn:hover {
    color: var(--primary-accent);
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--primary-accent-glow));
}

.linkedin-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    background-color: #02050c;
    padding: 3.5rem 2rem;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Rules */
@media (max-width: 1023px) {
    .scroll-indicator {
        display: none !important;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        text-align: center;
    }
    
    .hero-content {
        display: contents;
    }
    
    .hero-tag {
        order: 1;
    }
    
    .hero-title {
        order: 2;
    }
    
    .hero-description {
        order: 3;
        max-width: 600px;
    }
    
    .hero-actions {
        order: 4;
        justify-content: center;
        width: 100%;
    }
    
    .console-widget {
        order: 5;
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }
    
    .metrics-row {
        order: 6;
        justify-content: center;
        width: 100%;
    }
    
    .team-grid {
        gap: 2rem;
    }
    
    .profile-card {
        width: calc(50% - 1.25rem);
        min-width: 280px;
        max-width: 440px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: all 0.4s ease;
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
        width: 100%;
        text-align: center;
    }
    
    .mobile-only .nav-cta {
        display: inline-flex;
        margin-top: 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .profile-card {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 480px) {
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .metrics-row {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .metric-item {
        align-items: center;
    }
}

/* Footer Social Icon Links Styling */
.footer-socials {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.social-icon {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
}

.social-icon:hover {
    color: var(--primary-accent);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 6px var(--primary-accent-glow));
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon svg[fill="none"] {
    fill: none;
}

/* ==========================================
   Tools Navigation Dropdown
   ========================================== */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.65rem;
    margin-left: 0.35rem;
    transition: transform 0.22s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-block;
    vertical-align: middle;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px) scale(0.97);
    background: rgba(8, 10, 18, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0; /* Flush with borders to sync vertical hover lines */
    overflow: hidden; /* Clips link hover background perfectly to the rounded corners */
    min-width: 170px;
    list-style: none;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    transition: opacity 0.22s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 0.22s cubic-bezier(0.19, 1, 0.22, 1), 
                visibility 0.22s cubic-bezier(0.19, 1, 0.22, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 153, 51, 0.04);
    z-index: 1001;
}

/* Hover Bridge to prevent the hover state from dropping between trigger and menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

/* Hover and Keyboard focus triggers showing the menu with snapping scale & glow */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    border-color: rgba(255, 153, 51, 0.2);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 153, 51, 0.15);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem 0.85rem 1.25rem; /* Spacious padding flush with container top/bottom */
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    min-height: auto;
    text-align: left;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    color: var(--text-white);
    background: rgba(255, 153, 51, 0.08);
    padding-left: 1.5rem; /* Premium horizontal micro-slide */
    box-shadow: inset 3px 0 0 var(--primary-accent);
}

/* Ensure the top level item doesn't get the standard hover bottom line */
.nav-dropdown > a::after {
    display: none !important;
}

/* Dropdown responsive rules for Mobile Viewport */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.02);
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        display: none; /* Controlled by JS toggling on active class */
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-dropdown.active .dropdown-menu {
        display: flex;
    }

    .nav-dropdown:hover .dropdown-menu {
        transform: none;
    }

    .dropdown-menu a {
        text-align: center;
        padding: 0.5rem 1rem;
        box-shadow: none;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background: transparent;
        color: var(--primary-accent);
        box-shadow: none;
    }
    
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .dropdown-trigger {
        gap: 0.25rem;
    }
}
