/* ===================================================
   Cell IQ - Global Styles & Reset
   =================================================== */
@import url('variables.css');

/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Base */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

/* Layout Helpers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* Component: Typography Modifiers */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Component: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    border-radius: var(--radius-round);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brand-red);
    color: #FFF;
    box-shadow: 0 4px 16px var(--brand-red-glow);
}

.btn-primary:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--brand-red-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

/* --- Global Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(11, 14, 20, 0.85);
    /* brand dark base */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.navbar__brand svg {
    color: var(--brand-red);
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Removes the hard black background box on dark surfaces */
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.brand-text-highlight {
    color: #00AEEF;
    /* Cyan color matching the new logo icon */
}

.navbar__links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.navbar__link:hover {
    color: var(--text-primary);
}

.navbar__link--active {
    color: var(--brand-red);
    font-weight: 600;
}

.navbar__cta {
    padding: 10px 24px;
    border-radius: var(--radius-round);
    background: rgba(230, 57, 70, 0.1);
    color: var(--brand-red);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.navbar__cta:hover {
    background: var(--brand-red);
    color: #FFF;
}

/* --- Mobile Menu Toggle --- */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-dark-surface);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }

    .navbar__links.active {
        right: 0;
    }

    .navbar__cta {
        display: none;
    }

    /* Hide cta on mobile nav inside standard right side */
}

/* --- Global Footer --- */
.footer {
    background: var(--bg-dark-surface);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer__brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__list li,
.footer__list a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color var(--transition-fast);
}

.footer__list a:hover {
    color: var(--brand-red);
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}