/* =====================================================
   GLOBAL.CSS
   Shared across ALL pages — nav, footer, buttons,
   variables, reset, CTA, FAQ, logout
   ===================================================== */

/* =====================================================
   1. VARIABLES & STRICT RESET (Mobile Overflow Lock)
   ===================================================== */
:root {
    --green: #9CFF00;
    --black: #050605;
    /*--black: #FFFFFF;*/
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* CRITICAL: Stops horizontal scrolling */
    margin: 0;
    padding: 0;
    background: var(--black);
    color: #fff;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* CRITICAL: Traps background flows & GSAP animations */
#page {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
}

section {
    position: relative;
    z-index: 2;
}

/* =====================================================
   2. TYPOGRAPHY HELPERS (With Mobile Word-Break)
   ===================================================== */
h1, h2, h3, h4, h5, h6, .neon-title, .brand-text {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto; /* Handles massive words like "DigitaltactSolutions" on tiny screens */
}

h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--green);
    line-height: 1.15;
}

p {
    max-width: 700px;
    opacity: .85;
    line-height: 1.7;
}

.neon-title {
    font-size: 52px;
    margin-bottom: 24px;
    position: relative;
    color: var(--green);
    line-height: 1.15;
}

.neon-title::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 4px;
    background: var(--green);
    left: 0;
    bottom: -14px;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(156, 255, 0, .9);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =====================================================
   3. BUTTONS
   ===================================================== */
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
    padding: 14px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover {
    background: var(--green);
    color: #000;
    transform: translateY(-2px);
}

.call-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: #000;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 8px;
    line-height: 1.4;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.call-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.call-btn strong {
    font-size: 12px;
    letter-spacing: 0.3px;
}

.logout-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.logout-btn {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
    border-radius: 7px;
    padding: 7px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.logout-btn:hover {
    background: var(--green);
    color: #000;
}

/* =====================================================
   4. NAV & HEADER
   ===================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0 40px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 6, 5, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(156, 255, 0, 0.08);
}

.nav-logo {
    height: 52px;
    width: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(156, 255, 0, .35)) drop-shadow(0 0 14px rgba(156, 255, 0, .2));
}

nav > div:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 6px;
}

nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

nav a:hover, nav a.active {
    color: var(--green);
    background: rgba(156, 255, 0, 0.06);
}

.call {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--green);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   5. SHARED SECTIONS (FAQ, GLOBAL CTA)
   ===================================================== */
.faq-container {
    padding: 80px 10%;
    background: #0a0a0a;
}

.faq-item {
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    color: var(--green);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    gap: 12px;
}

.faq-question:hover { color: #fff; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.faq-answer p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 20px;
    max-width: none;
    opacity: 1;
}

.faq-item.active .icon {
    transform: rotate(45deg);
    color: #fff;
}

.icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* =====================================================
   6. FOOTER
   ===================================================== */
.footer {
    position: relative;
    z-index: 2;
    padding: 50px 8%;
    background: #050605;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
    font-size: 13px;
    opacity: .65;
    max-width: none;
}

.footer span {
    color: var(--green);
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
    color: var(--green);
    background: rgba(156, 255, 0, 0.06);
}

.footer-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--green);
    color: #000;
    border-color: var(--green);
    transform: translateY(-3px);
}

/* =====================================================
   7. GLOBAL RESPONSIVE RULES (Nav, Footer, FAQ)
   ===================================================== */
@media (max-width: 1024px) {
    nav { padding: 0 24px; }
    nav a { font-size: 11px; padding: 5px 7px; }
    .call-btn { font-size: 9px; padding: 7px 12px; }
    .call-btn strong { font-size: 11px; }
    h2 { font-size: 36px; }
    .neon-title { font-size: 44px; }
}

@media (max-width: 768px) {
    /* MOBILE NAV SETUP */
    nav { height: 60px; padding: 0 18px; flex-wrap: nowrap; }
    .nav-toggle { display: flex; order: 3; }
    .nav-logo { height: 42px; width: 42px; order: 1; }
    
    .call { order: 2; flex: 1; justify-content: flex-end; gap: 8px; padding-right: 10px; }
    .call-btn { font-size: 9px; padding: 6px 10px; }
    .call-btn strong { font-size: 10px; }
    .logout-btn { font-size: 10px; padding: 6px 10px; }

    /* MOBILE MENU DRAWER */
    nav > div:nth-child(2) {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5, 6, 5, 0.97);
        backdrop-filter: blur(14px);
        padding: 16px 24px 28px;
        border-bottom: 1px solid rgba(156, 255, 0, 0.12);
        z-index: 999;
    }
    nav > div:nth-child(2).open { display: flex; }
    nav > div:nth-child(2) a {
        font-size: 15px;
        padding: 14px 8px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
    }
    nav > div:nth-child(2) a:last-child { border-bottom: none; }

    /* GLOBAL MOBILE TYPOGRAPHY & PADDING */
    h2 { font-size: 28px; }
    .neon-title { font-size: 30px; }
    .neon-title::after { width: 60px; }
    .faq-container { padding: 60px 6%; }
    .faq-question { font-size: 0.95rem; }

    /* MOBILE FOOTER */
    .footer { padding: 40px 6%; }
    .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
    .footer p { font-size: 12px; }
}

@media (max-width: 480px) {
    nav { height: 56px; padding: 0 14px; }
    .nav-logo { height: 38px; width: 38px; }
    nav > div:nth-child(2) { top: 56px; }
    .call-btn { font-size: 8px; padding: 5px 9px; }
    .call-btn strong { font-size: 10px; }
    
    h2 { font-size: 24px; }
    .neon-title { font-size: 26px; }
    .faq-container { padding: 50px 5%; }
    
    .footer { padding: 36px 5%; }
    .footer-social a { width: 34px; height: 34px; font-size: 13px; }
    .footer-links a { font-size: 12px; padding: 4px 7px; }
}