/* UNIVERSAL HEADER & FOOTER STYLES */

:root {
    --bg-color: #ffffff;
    --text-color: #0f1212;
    --accent-purple: #7c3aed;
}

/* Header / Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    max-width: 100%;
    margin: 0;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    z-index: 1001;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background-color 0.3s ease;
}

.nav-links a {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #444;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.nav-item:hover {
    background-color: #f3f4f6; /* Modern light grey pill like hear.ai */
}

.nav-item:hover > a {
    color: var(--accent-purple);
}

.nav-hover-card {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.nav-item:hover .nav-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hover-card-content h4 {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.hover-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hover-card-content ul li {
    margin-bottom: 0.5rem;
}

.hover-card-content ul li a {
    font-size: 0.85rem;
    color: #111;
    text-transform: none;
    letter-spacing: 0;
    transition: transform 0.2s ease;
    display: inline-block;
}

.hover-card-content ul li a:hover {
    transform: translateX(4px);
    color: var(--accent-purple);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.btn-dark {
    padding: 0.8rem 1.5rem;
    background-color: var(--text-color);
    color: #fff !important;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
}

.btn-dark:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
    background-color: #222;
    border-color: rgba(124, 58, 237, 0.2);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

/* Footer Section */
.site-footer {
    background-color: #0a0a0a;
    padding: 0;
    color: #aaaaaa;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #1a1a1a;
    position: relative;
    z-index: 10;
}

.footer-marquee-strip {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 18px 0;
    background: #050505;
}

.footer-marquee-track {
    display: inline-flex;
    gap: 2rem;
    align-items: baseline;
    white-space: nowrap;
    animation: footerMarquee 22s linear infinite;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    user-select: none;
}

.footer-marquee-track .fms {
    color: #333;
    font-weight: 300;
}

@keyframes footerMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 4rem;
}

.footer-brand {
    min-width: 240px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-wrap {
    height: 60px;
}

.footer-logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    font-size: 0.7rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-brand-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.footer-social-row {
    display: flex;
    gap: 12px;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #222;
    color: #888;
    transition: all 0.2s ease;
    background: #111;
}

.footer-social-icon:hover {
    color: #fff;
    border-color: var(--accent-purple);
    background: var(--accent-purple);
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.col-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-col a {
    color: #666;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.copyright {
    font-size: 0.8rem;
    color: #444;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: #444;
}

.footer-bottom-links a:hover {
    color: #888;
}

/* MOBILE RESPONSIVE header/footer */
@media (max-width: 1024px) {
    .navbar { padding: 0 2rem; }
    .nav-links { gap: 1.5rem; }
    .footer-links { gap: 2rem; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .navbar { height: 60px; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        left: auto;
        transform: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item { padding: 0; }
    .nav-links a { font-size: 1.2rem; font-weight: 600; }

    .nav-actions { display: none; } /* Actions usually go into side menu on mobile or stay simplified */

    .mobile-toggle.active .hamburger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active .hamburger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .footer-top { flex-direction: column; gap: 3rem; }
    .footer-links { grid-template-columns: 1fr 1fr; display: grid; width: 100%; gap: 2rem; }
    .footer-bottom-bar { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}
