/* ==========================================================================
   AVP TECH SOLUTION - COMPONENTS STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FIXED NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-sticky);
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    padding: 0.85rem 0;
    background: rgba(11, 15, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-purple);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links.active {
        right: 0;
    }
}

/* --------------------------------------------------------------------------
   2. HERO SECTION & AURORA BACKGROUND
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.blob-purple {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -10%;
    left: 10%;
}

.blob-cyan {
    width: 450px;
    height: 450px;
    background: var(--accent-cyan);
    top: 30%;
    right: 5%;
}

.blob-green {
    width: 400px;
    height: 400px;
    background: var(--accent-green);
    bottom: -10%;
    left: 30%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    .hero-buttons {
        justify-content: center;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   3. HERO WORKFLOW DIAGRAM
   -------------------------------------------------------------------------- */
.workflow-diagram {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.workflow-node {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}

.node-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.node-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
}

.node-counter {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* --------------------------------------------------------------------------
   4. TECH MARQUEE
   -------------------------------------------------------------------------- */
.marquee-wrapper {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 1.5rem 0;
}

.marquee-content {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   5. BENTO GRID
   -------------------------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-card {
    background: #121820;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #F7F6F2;
    opacity: 1 !important;
    visibility: visible !important;
}

.bento-card h3 {
    color: #FFFFFF !important;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.bento-card p {
    color: #CBD5E1 !important;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 1 !important;
    visibility: visible !important;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 135, 249, 0.4);
    box-shadow: 0 20px 40px rgba(196, 135, 249, 0.25);
}

.bento-wide {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-wide {
        grid-column: span 1;
    }
}

/* --------------------------------------------------------------------------
   6. CASE STUDIES
   -------------------------------------------------------------------------- */
.case-study-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    background: #121820;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    color: #F7F6F2;
    opacity: 1 !important;
    visibility: visible !important;
}

.case-study-card h3 {
    color: #FFFFFF !important;
}

.case-study-card p {
    color: #CBD5E1 !important;
}

@media (max-width: 768px) {
    .case-study-card {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   7. CRM SHOWCASE
   -------------------------------------------------------------------------- */
.crm-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (max-width: 992px) {
    .crm-grid { grid-template-columns: 1fr; }
}

.crm-mockup {
    padding: 1.5rem;
    background: rgba(18, 24, 32, 0.8);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-card);
}

.kanban-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.kanban-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   8. PROCESS TIMELINE
   -------------------------------------------------------------------------- */
.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
}

.timeline-line {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
}

@media (max-width: 768px) {
    .timeline-track {
        flex-direction: column;
        gap: 2rem;
    }
    .timeline-line { display: none; }
}

/* --------------------------------------------------------------------------
   9. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0.5rem;
    color: #CBD5E1;
}

.faq-answer p {
    color: #CBD5E1 !important;
    font-size: 0.98rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active {
    border-left: 3px solid var(--accent-purple);
    padding-left: 1rem;
}

/* --------------------------------------------------------------------------
   10. CUSTOM CURSOR
   -------------------------------------------------------------------------- */
#cursor {
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    will-change: transform;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 15px var(--accent-purple);
}

#cursor.cursor-grow {
    width: 36px;
    height: 36px;
    background: rgba(196, 135, 249, 0.3);
    border: 1px solid var(--accent-purple);
}

/* --------------------------------------------------------------------------
   11. FOOTER STYLES
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    color: var(--text-muted);
}
