﻿/* Container */
.sticklyui-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

.sticklyui-group {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
    transition: gap 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expandable behavior - only via click */
.sticklyui-group.is-expanded {
    gap: 10px;
}

/* Positions */
.sticklyui-bottom-right {
    bottom: 24px;
    right: 24px;
}

.sticklyui-bottom-left {
    bottom: 24px;
    left: 24px;
}

.sticklyui-top-right {
    top: 24px;
    right: 24px;
}

.sticklyui-top-left {
    top: 24px;
    left: 24px;
}

/* Button Base Styles */
.sticklyui-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    font-size: 22px;
    overflow: visible;
    border: none;
}

/* Plus icon trigger button */
.sticklyui-trigger {
    background: #2563eb;
    /* Blue background */
    color: #ffffff;
    /* White icon */
    z-index: 10;
}

.sticklyui-trigger i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

/* Rotate plus to X when expanded */
.sticklyui-group.is-expanded .sticklyui-trigger i {
    transform: rotate(45deg);
}

/* Single button groups - show the button directly */
.sticklyui-group[data-button-count="1"] .sticklyui-btn {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    margin-top: 0;
}

/* Multiple button groups - hide action buttons initially */
.sticklyui-group[data-button-count]:not([data-button-count="1"]):not(.is-expanded) .sticklyui-btn:not(.sticklyui-trigger) {
    opacity: 0;
    transform: scale(0.6) translateY(0);
    pointer-events: none;
    margin-top: -56px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show action buttons when expanded */
.sticklyui-group.is-expanded .sticklyui-btn:not(.sticklyui-trigger) {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    margin-top: 0;
}


/* Stagger animation for expanding buttons */
.sticklyui-group .sticklyui-btn:nth-child(2) {
    transition-delay: 0s;
}

.sticklyui-group.is-expanded .sticklyui-btn:nth-child(2) {
    transition-delay: 0.04s;
}

.sticklyui-group .sticklyui-btn:nth-child(3) {
    transition-delay: 0s;
}

.sticklyui-group.is-expanded .sticklyui-btn:nth-child(3) {
    transition-delay: 0.07s;
}

.sticklyui-group .sticklyui-btn:nth-child(4) {
    transition-delay: 0s;
}

.sticklyui-group.is-expanded .sticklyui-btn:nth-child(4) {
    transition-delay: 0.1s;
}

.sticklyui-group .sticklyui-btn:nth-child(5) {
    transition-delay: 0s;
}

.sticklyui-group.is-expanded .sticklyui-btn:nth-child(5) {
    transition-delay: 0.13s;
}

.sticklyui-group .sticklyui-btn:nth-child(6) {
    transition-delay: 0s;
}

.sticklyui-group.is-expanded .sticklyui-btn:nth-child(6) {
    transition-delay: 0.16s;
}

/* Button hover state */
.sticklyui-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #fff;
}

.sticklyui-btn i {
    font-size: 22px;
    line-height: 1;
}

.sticklyui-btn-img-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Tooltip */
.sticklyui-tooltip {
    position: absolute;
    background: rgba(30, 30, 35, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.sticklyui-bottom-right .sticklyui-tooltip,
.sticklyui-top-right .sticklyui-tooltip {
    right: 100%;
    margin-right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.sticklyui-bottom-left .sticklyui-tooltip,
.sticklyui-top-left .sticklyui-tooltip {
    left: 100%;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.sticklyui-btn:hover .sticklyui-tooltip {
    opacity: 1;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 767px) {
    .sticklyui-btn {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .sticklyui-bottom-right,
    .sticklyui-bottom-left {
        bottom: 20px;
    }

    .sticklyui-bottom-right {
        right: 20px;
    }

    .sticklyui-bottom-left {
        left: 20px;
    }

    .sticklyui-top-right,
    .sticklyui-top-left {
        top: 20px;
    }

    .sticklyui-top-right {
        right: 20px;
    }

    .sticklyui-top-left {
        left: 20px;
    }
}


/* Accessibility */
.sticklyui-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Print */
@media print {
    .sticklyui-container {
        display: none !important;
    }
}

/* Sticky Header Styles */
.sticklyui-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999998;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

.sticklyui-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sticklyui-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.sticklyui-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: #fff;
    filter: brightness(1.1);
}

.sticklyui-header-btn i {
    font-size: 16px;
}

.header-btn-text {
    font-size: 14px;
    line-height: 1;
}

/* Sticky Header Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add padding to body when sticky header is present */
body.has-sticklyui-header {
    padding-top: 60px;
}

/* Responsive Sticky Header */
@media (max-width: 767px) {
    .sticklyui-header-container {
        padding: 10px 15px;
        gap: 10px;
    }

    .sticklyui-header-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .sticklyui-header-btn i {
        font-size: 14px;
    }

    .header-btn-text {
        font-size: 13px;
    }

    body.has-sticklyui-header {
        padding-top: 50px;
    }
}

/* Sticky Header */
.sticklyui-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

.sticklyui-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-logo a:hover {
    opacity: 0.8;
}

.header-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.header-menu li {
    margin: 0;
}

.header-menu a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 5px 0;
}

.header-menu a:hover {
    opacity: 0.7;
}

.header-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.header-mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: currentColor;
    transition: all 0.3s;
}

/* Body padding when header is present */
body.has-sticklyui-header {
    padding-top: 70px;
}

/* Mobile Sticky Header */
@media (max-width: 768px) {
    .sticklyui-header-container {
        padding: 12px 20px;
    }

    .header-logo a {
        font-size: 20px;
    }

    .header-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: inherit;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .header-menu.active {
        display: block;
    }

    .header-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .header-menu a {
        display: block;
        padding: 12px 30px;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .header-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .header-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    body.has-sticklyui-header {
        padding-top: 55px;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Contact Form Popup */
.sticklyui-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.sticklyui-popup.is-active {
    opacity: 1;
    visibility: visible;
}

.sticklyui-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sticklyui-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sticklyui-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticklyui-popup-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.sticklyui-popup-header {
    margin-bottom: 30px;
    text-align: left;
}

.sticklyui-popup-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sticklyui-popup-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
}

.sticklyui-contact-form .form-group {
    margin-bottom: 20px;
}

.sticklyui-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.sticklyui-contact-form input[type="text"],
.sticklyui-contact-form input[type="email"],
.sticklyui-contact-form input[type="tel"],
.sticklyui-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sticklyui-contact-form input:focus,
.sticklyui-contact-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.sticklyui-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.sticklyui-submit-btn {
    width: 100%;
    padding: 14px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
    margin-top: 10px;
}

.sticklyui-submit-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.sticklyui-submit-btn:active {
    transform: translateY(0);
}

.sticklyui-contact-form .form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}

.sticklyui-contact-form .form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sticklyui-contact-form .form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Popup */
@media (max-width: 767px) {
    .sticklyui-popup-content {
        padding: 30px 20px;
        width: 95%;
    }

    .sticklyui-popup-content h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .sticklyui-contact-form input,
    .sticklyui-contact-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .sticklyui-submit-btn {
        padding: 12px;
        font-size: 15px;
    }

    /* Expandable buttons on mobile */
    .sticklyui-group {
        bottom: 20px !important;
        right: 20px !important;
        left: 20px !important;
        top: auto !important;
    }

    .sticklyui-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .sticklyui-btn i {
        font-size: 20px;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}