/* Pioneer IT Agency - Global Styles */

:root {
    --agency-dark: #0f172a;
    --agency-orange: #f97316;
    --agency-blue: #2563eb;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background UX Effects */
.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
}

.hero-gradient-overlay {
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--agency-dark) 80%);
}

.glow-point {
    filter: blur(120px);
    opacity: 0.4;
    mix-blend-mode: screen;
}

.bg-grid {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-bg-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay-95-vis {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.05);
    z-index: 5;
}

.bg-grid-dark {
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}



/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Activity Bot */
.bot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

/* Accordion Styles */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

#hero-headline-wrap {
    transition: opacity 0.5s ease-in-out;
    display: block;
}

/* Scroll Reveal Animations */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
    opacity: 1 !important;
    animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Refined Hero Staggered Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-in-down {
    opacity: 0;
    animation: fadeInDown 1s cubic-bezier(0.25, 0.1, 0.25, 1) 1 forwards;
}

.anim-slide-up-fade {
    opacity: 0;
    animation: slideUpFade 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 1 forwards;
}

.anim-fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.1, 0.25, 1) 1 forwards;
}

/* Staggered Delays */
.delay-200 {
    animation-delay: 200ms;
}

.delay-800 {
    animation-delay: 800ms;
}

/* Motto Carousel Transitions */
@keyframes mottoSlideUpIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mottoSlideUpOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#hero-headline-wrap {
    min-height: 3.5em;
    /* Safe for multi-line on mobile */
    display: inline-block;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.motto-slide-in {
    animation: mottoSlideUpIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.motto-slide-out {
    animation: mottoSlideUpOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* Floating Support Widget */
.support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.support-widget::after {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: -1;
}

.support-main-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.support-widget:hover .support-main-btn {
    transform: rotate(45deg) scale(0.9);
    background: #0f172a;
}

.support-options {
    position: absolute;
    bottom: 50px;
    /* Start lower to overlap slightly with button area */
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    padding-bottom: 30px;
    /* Bridge the gap between main button and list */
    z-index: 1;
}

.support-widget:hover .support-options,
.support-widget.active .support-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    cursor: pointer;
}

.support-option:hover {
    transform: translateX(-10px);
    background: #f97316;
    color: white;
}

/* Specific style for trigger options */
.support-option.audit-trigger {
    background: var(--agency-orange);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-option.audit-trigger:hover {
    background: var(--agency-dark);
}

.support-option i {
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #f97316;
    transition: all 0.3s ease;
}

.support-option:hover i {
    background: white;
    color: #f97316;
}

.support-option.audit-trigger i {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

@media (max-width: 768px) {
    .support-widget {
        bottom: 20px;
        right: 20px;
        position: fixed !important;
    }

    .support-main-btn {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .support-options {
        bottom: 65px;
        right: 0;
        flex-direction: column !important;
        align-items: flex-end;
        gap: 10px;
        width: auto;
        display: flex !important;
    }

    .support-option {
        padding: 8px 15px;
        font-size: 13px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Lead Generation Modal */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lead-modal.active {
    opacity: 1;
}

.lead-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.lead-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
    z-index: 10;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.lead-modal.active .lead-modal-content {
    transform: translateY(0);
}

.lead-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
}

.lead-modal-close:hover {
    color: var(--agency-orange);
}

/* Background Grid Utility */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.glow-point {
    filter: blur(120px);
    pointer-events: none;
    z-index: 15;
}

/* Gemini Chat Interface Styles */
.gemini-chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: #0f172a;
    /* Same as agency-dark */
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.gemini-chat-container.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.gemini-chat-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gemini-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gemini-chat-header-info i {
    color: #f97316;
    font-size: 20px;
}

.gemini-chat-header-info span {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.gemini-chat-close {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.gemini-chat-close:hover {
    color: #f97316;
}

.gemini-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.gemini-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: messageFadeIn 0.3s ease-out forwards;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gemini-message.user {
    align-self: flex-end;
    background: #f97316;
    color: white;
    border-bottom-right-radius: 2px;
}

.gemini-message.bot {
    align-self: flex-start;
    background: #1e293b;
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gemini-chat-input-area {
    padding: 15px 20px;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.gemini-chat-input {
    flex-grow: 1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.gemini-chat-input:focus {
    border-color: #f97316;
}

.gemini-chat-send {
    background: #f97316;
    color: white;
    border: none;
    border-radius: 6px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gemini-chat-send:hover {
    background: #ea580c;
    transform: scale(1.05);
}

.typing-indicator {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 5px;
    display: none;
}

@media (max-width: 480px) {
    .gemini-chat-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
        height: 450px;
    }
}