/* =======================================================
      SOFTFLOW.PRO — SERVICES PAGE (FINISHED)
======================================================= */

/* ---------------- HERO --------------------- */

.services-hero {
    position: relative;
    padding: 150px 0 120px;
    min-height: 560px;
    background: url("assets/hero-bg-softflow.png") center/cover no-repeat;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

/* Заголовок */
.services-hero h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 84px;
    font-weight: 400;
    color: #4b2f23;
    position: relative;
    z-index: 5;

    text-shadow:
        0 0 22px rgba(255,255,255,1),
        0 0 45px rgba(255,240,210,0.95),
        0 0 90px rgba(255,240,210,0.85),
        0 0 140px rgba(255,230,185,0.7),
        0 0 240px rgba(255,225,165,0.55);

    animation: heroGlow 4.5s ease-in-out infinite;
}

@keyframes heroGlow {
    0%   { opacity: 0.85; }
    50%  { opacity: 1; }
    100% { opacity: 0.85; }
}

.services-subtitle {
    text-align: center;
    font-size: 22px;
    max-width: 720px;
    margin: 25px auto 0;
    color: #4b2f23;
    line-height: 1.6;
    position: relative;
    text-shadow: 0 0 12px rgba(255,255,255,0.4);
    z-index: 5;
}

/* -------------------------------------------
      FLOATING 3D SPHERES
-------------------------------------------- */

.services-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 550px;
    perspective: 800px;
    pointer-events: none;
}

.services-scene img {
    position: absolute;
    opacity: 0.9;
    mix-blend-mode: screen;
    filter:
        blur(1px)
        drop-shadow(0 0 12px rgba(255, 220, 150, 0.55))
        drop-shadow(0 0 22px rgba(255, 200, 120, 0.35));
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-25px); }
    100% { transform: translateY(0px); }
}

.depth-1 { width: 520px; left: 3%;  top: 240px; }
.depth-2 { width: 320px; right: 6%; top: 20%; }
.depth-3 { width: 240px; right: 18%; top: 52%; }

/* =======================================================
      CHAMPAGNE SECTION
======================================================= */

.champagne-area {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 80px 0 120px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.03) 100%
        ),
        url("assets/star-area.png") center/cover no-repeat;
}

/* слои */
.champagne-bubbles { z-index: 1; }
.champagne-stars   { z-index: 2; }
.star-layer        { z-index: 3; }

.champagne-area > div {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1400px;
    pointer-events: none;
    overflow: visible;
}

/* БАЗА: белое мягкое сияние */
.star {
    position: absolute;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.7) 40%,
        rgba(255, 255, 255, 0.2) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 50%;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #fff);
    animation: flicker 3s infinite ease-in-out, float 12s infinite ease-in-out;
}

/* большие */
.star.big {
    width: 14px;
    height: 14px;
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px #fff);
}

/* маленькие */
.star.small {
    width: 6px;
    height: 6px;
    filter: drop-shadow(0 0 4px #fff);
}

/* ЛЁГКОЕ НЕОНОВОЕ МЕРЦАНИЕ */
@keyframes flicker {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
    100% { opacity: 0.6; transform: scale(1); }
}

/* ЭФФЕКТ ЛЁТНОГО "ХАОСА В ХАОСЕ" */
@keyframes float {
    0%   { transform: translate(0px, 0px); }
    25%  { transform: translate(4px, -6px); }
    50%  { transform: translate(-5px, 3px); }
    75%  { transform: translate(3px, 5px); }
    100% { transform: translate(0px, 0px); }
}


/* =======================================================
      BIG STAR PNG (YOUR star1.png)
======================================================= */

.star {
    position: absolute;
    background: url("assets/stars.png") center/contain no-repeat;
    width: 200px;
    height: 200px;
    opacity: 0.85;

    filter: drop-shadow(0 0 30px rgba(255,230,185,1))
            drop-shadow(0 0 55px rgba(255,210,150,1));

    animation: starPulse 5s ease-in-out infinite;
}

@keyframes starPulse {
    0%   { transform: scale(0.95) rotate(0deg); opacity: 0.6; }
    40%  { transform: scale(1.05) rotate(6deg); opacity: 1; }
    70%  { transform: scale(1.0) rotate(-4deg); opacity: 0.85; }
    100% { transform: scale(0.95) rotate(0deg); opacity: 0.6; }
}

.star:nth-child(odd) {
    animation-duration: 4s, 14s;
}

.star:nth-child(even) {
    animation-duration: 3s, 18s;
}

.star:nth-child(3n) {
    animation-duration: 5s, 20s;
    opacity: 0.7;
}

.star:nth-child(4n) {
    animation-duration: 2.8s, 16s;
    transform: scale(1.1);
}


/* =======================================================
      BUBBLES
======================================================= */

.champagne-bubbles span {
    position: absolute;
    bottom: -60px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);

    animation: bubbleUp 14s linear infinite;

    box-shadow:
        0 0 8px rgba(255,255,255,1),
        0 0 16px rgba(255,240,200,0.8);
}

@keyframes bubbleUp {
    0%   { transform: translateY(0) scale(1); opacity: 0.2; }
    20%  { opacity: 1; }
    100% { transform: translateY(-150vh) scale(1.3); opacity: 0; }
}

.star.big {
    width: 180px;
    height: 180px;
}

.star.small {
    width: 90px;
    height: 90px;
}

@keyframes starFlash {
    0%   { opacity: 0.15; transform: scale(0.8); }
    30%  { opacity: 1;    transform: scale(1.15); }
    60%  { opacity: 0.6;  transform: scale(1); }
    100% { opacity: 0.15; transform: scale(0.85); }
}

@keyframes starFlash {
    0%   { opacity: 0.15; transform: scale(0.8); }
    30%  { opacity: 1;    transform: scale(1.15); }
    60%  { opacity: 0.6;  transform: scale(1); }
    100% { opacity: 0.15; transform: scale(0.85); }
}

.star {
    opacity: 0;
    transform: scale(0.7);
    transition: 1.2s ease-out;

    background: url("assets/star1.png") center/contain no-repeat;
    position: absolute;
    pointer-events: none;
}

.star.revealed {
    opacity: 1;
    transform: scale(1);
}

.star.big {
    animation:
        starFlash 5s ease-in-out infinite,
        starWiggle 8s ease-in-out infinite alternate;
}

.star.small {
    animation:
        starFlash 4s ease-in-out infinite,
        starWiggle 10s ease-in-out infinite alternate;
}

/* =======================================================
      FORMATS (cards)
======================================================= */

.services-formats {
    position: relative;
    padding: 150px 0 130px;
    z-index: 10;
}

.services-title {
    font-family: 'Great Vibes', cursive;
    font-size: 70px;
    color: #4b2f23;
    text-align: center;
    margin-bottom: 40px;

    text-shadow:
        0 0 12px rgba(255,230,185,0.6),
        0 0 28px rgba(255,200,150,0.35);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
    margin-top: 50px;
}

.service-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow:
        0 8px 28px rgba(255,210,160,0.28),
        0 4px 12px rgba(0,0,0,0.06);
    transition: 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 36px rgba(255,220,170,0.45),
        0 6px 18px rgba(0,0,0,0.1);
}

/* =======================================================
      CTA
======================================================= */

.services-cta {
    position: relative;
    padding: 90px 0 70px;
    text-align: center;
}

/* =======================================================
      ADAPTIVE
======================================================= */

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-hero h1 { font-size: 56px; }
    .services-title { font-size: 52px; }
}
