/* ============================================================
   home.css  —  მთავარი გვერდის სტილები
   გამოიყენება: HomeView-ში
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────── */
.ai-hero-video { height: 100dvh; overflow: hidden; }
.ai-hero-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-hero-video::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(10,10,10,.5) 50%, #0a0a0a 100%);
    pointer-events: none;
}

/* ── Preloader ──────────────────────────────────────────── */
#preloader {
    position: fixed; inset: 0;
    z-index: 9999;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Video Section ──────────────────────────────────────── */
.custom-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    background: rgba(74,144,226,.85);
    border-radius: 50%;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(74,144,226,.7);
}
.custom-play-btn:hover {
    background: rgba(74,144,226,1);
    transform: translate(-50%, -50%) scale(1.1);
    animation: none;
    box-shadow: 0 0 25px rgba(74,144,226,.8);
}
.custom-play-btn svg { width: 28px; height: 28px; fill: white; margin-left: 4px; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74,144,226,.7); }
    70%  { box-shadow: 0 0 0 18px rgba(74,144,226,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,144,226,0); }
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

.custom-pause-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 72px; height: 72px;
    background: rgba(74,144,226,.85);
    border-radius: 50%;
    z-index: 5;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease, transform .3s ease;
    opacity: 0;
}
.custom-pause-btn:hover {
    background: rgba(74,144,226,1);
    transform: translate(-50%, -50%) scale(1.1);
}
.custom-pause-btn svg { width: 28px; height: 28px; fill: white; }
#videoWrapper:hover .custom-pause-btn { opacity: 1; }

/* ── Contact Form ───────────────────────────────────────── */
.tp-contact-form-btn button .btn-loading-svg {
    display: none;
    width: 22px; height: 22px;
    vertical-align: middle;
    animation: tp-spin .9s linear infinite;
    color: inherit;
}
@keyframes tp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.tp-contact-form-btn button.is-loading .btn-text-1,
.tp-contact-form-btn button.is-loading .btn-text-2 { display: none; }
.tp-contact-form-btn button.is-loading .btn-loading-svg { display: inline-block; }
.tp-contact-form-btn button:disabled { opacity: .65; cursor: not-allowed; pointer-events: none; }

.tp-form-success-msg {
    display: none;
    text-align: center;
    padding: 40px 20px;
    animation: tp-fade-in .4s ease forwards;
}
@keyframes tp-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tp-form-success-msg svg { width: 52px; height: 52px; stroke: #1a7a4a; margin-bottom: 16px; }
.tp-form-success-msg p { font-size: 17px; font-weight: 600; margin: 0; color: white; }
/* სერვისების დასტა (main.js → svc-stack): ბარათები აბსოლუტურად ილაგება და JS-ით გადაადგილდება,
   ზემოთ გასული ზოლები JS-ით რბილად ქრება, ამიტომ კონტეინერი მხოლოდ ქვედა მხარეს ჭრის */
.tp-service-pin.is-stacked {
    position: relative;
    clip-path: inset(-100vh 0 0 0);
}
.tp-service-pin.is-stacked .tp-service-panel {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    will-change: transform;
}
