/* =====================================================
   BEST NOTCH — Premium Global Header & Footer
   ===================================================== */

/* === HEADER === */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(3, 3, 3, 0.75);
    border-bottom: 1px solid rgba(255, 107, 0, 0.12);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.main-header.scrolled {
    background: rgba(3, 3, 3, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

/* Logo */
.logo-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
    z-index: 100000;
    position: relative;
    transition: transform 0.3s ease;
}

.logo-wrap:hover {
    transform: scale(1.02);
}

.logo-main {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
}

.logo-sub {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 9px;
    letter-spacing: 2px;
    color: #FF6B00;
    text-transform: uppercase;
    margin-top: 1px;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    padding: 12px 0;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 6px 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #FF6B00, transparent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 107, 0, 0.7);
}

.nav-cta {
    background: linear-gradient(135deg, #FF6B00, #CC5500);
    border-radius: 50px;
    padding: 10px 22px;
    color: #fff !important;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 107, 0, 0.5);
    text-shadow: none !important;
}

/* === MEGA DROPDOWN === */
.creative-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px) rotateX(-15deg);
    width: 640px;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 16px;
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 999999;
    transform-origin: top center;
}

.nav-item:hover .creative-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) rotateX(0deg);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.drop-link {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: #a0aec0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
}

.drop-icon {
    font-size: 1.3rem;
    margin-right: 12px;
    color: #FF6B00;
    transition: 0.3s;
    filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.4));
}

.drop-link:hover {
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.drop-link:hover .drop-icon {
    color: #FFA500;
    filter: drop-shadow(0 0 10px #FFA500);
}

/* === MOBILE HAMBURGER === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 100001;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #FF6B00;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff;
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff;
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        padding-top: 100px;
        padding-bottom: 50px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s ease;
        z-index: 99999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        z-index: 999999;
    }

    .nav-links.active .nav-link,
    .nav-links.active .nav-item {
        color: #fff;
        opacity: 1;
        visibility: visible;
    }

    .nav-links.active .nav-link:hover {
        color: #FF6B00;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 4px 0;
    }

    .nav-link {
        font-size: 20px;
    }

    .nav-cta {
        display: inline-block;
        margin-top: 16px;
    }

    .creative-dropdown {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 300px;
        margin: 8px auto 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .creative-dropdown.mobile-open {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .drop-link {
        justify-content: center;
        padding: 9px;
        background: rgba(255, 255, 255, 0.04);
    }
}

/* === FLOATING LAYER === */
#floating-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.keyword-float-node {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1.4rem);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 12px currentColor;
    white-space: nowrap;
    transition: opacity 1s ease;
}

/* === MAIN CONTENT PUSH === */
.main-content {
    position: relative;
    z-index: 10;
}

/* === FOOTER === */
.main-footer {
    background: linear-gradient(to top, #050505, #0F0F0F);
    padding: 80px 0 30px;
    color: #ccc;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 107, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 48px;
    padding: 0 24px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    color: #FF6B00;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.footer-col a:hover {
    color: #FF6B00;
    text-shadow: 0 0 8px rgba(255, 107, 0, 0.5);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #a0aec0;
}

.footer-contact-item .fci-icon {
    color: #FF6B00;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-icons a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: rgba(255, 107, 0, 0.06);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 107, 0, 0.15);
    transition: 0.3s ease;
    font-size: 1rem;
    color: #a0aec0;
}

.footer-social-icons a:hover {
    background: rgba(255, 107, 0, 0.15);
    border-color: #FF6B00;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.35);
    color: #FF6B00;
}

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: #4a5568;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #FF6B00;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* === WHATSAPP FLOAT === */
.sticky-chat-btn {
    position: fixed !important;
    bottom: 28px !important;
    right: 28px !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-chat-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.sticky-chat-btn .wa-icon {
    font-size: 1.2rem;
}

/* === WEBGL CANVAS === */
.webgl-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Scroll To Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 45px;
    height: 45px;
    background: rgba(255,107,0,0.15);
    border: 1px solid var(--orange);
    color: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}
#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scroll-to-top:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,107,0,0.3);
}

/* Page Transition Fade — only apply to body element NOT nav layers */
body.home-page {
    animation: fadePageIn 0.5s ease forwards;
}
@keyframes fadePageIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
