/* === APEX DIGITAL — WARM PERSONALITY EDITION === */
/* Palette: #F5F5F0 cream | #E6D8C3 sand | #C2A68C caramel | #FF6854 coral | #7C6CF0 lavender | #22C997 mint */

/* Base */
html { scroll-behavior: smooth; }
body { background: #F5F5F0; }

::selection {
    background: rgba(194, 166, 140, 0.3);
    color: #2D2A26;
}

/* === ANIMATIONS === */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(1.5deg); }
}
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes blob-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 40% 70% 50% 60%; }
    75% { border-radius: 60% 30% 60% 40% / 70% 50% 40% 60%; }
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes wave-hand {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}
@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
@keyframes pop-in {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Utility classes */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-float-reverse { animation: float-reverse 7s ease-in-out infinite; }
.animate-bounce-soft { animation: bounce-soft 2s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 3s ease-in-out infinite; }
.animate-blob { animation: blob-morph 8s ease-in-out infinite; }
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }
.animate-fade-in-up { animation: fade-in-up 0.7s ease-out forwards; }
.animate-slide-in-left { animation: slide-in-left 0.6s ease-out forwards; }
.animate-wave { animation: wave-hand 2.5s ease-in-out infinite; transform-origin: 70% 70%; }
.animate-pop-in { animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }
.delay-400 { animation-delay: 0.4s; opacity: 0; }
.delay-500 { animation-delay: 0.5s; opacity: 0; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Nav */
.nav-scrolled {
    background: rgba(245, 245, 240, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* === BLOB SHAPES === */
.blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob-morph 8s ease-in-out infinite;
}
.blob-coral { background: rgba(255, 104, 84, 0.12); }
.blob-purple { background: rgba(124, 108, 240, 0.10); }
.blob-green { background: rgba(34, 201, 151, 0.10); }
.blob-yellow { background: rgba(255, 193, 7, 0.12); }
.blob-pink { background: rgba(255, 133, 162, 0.10); }

/* === BUTTONS === */
.btn-primary {
    background: #FF6854;
    color: white;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(255, 104, 84, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 104, 84, 0.4);
    background: #FF5740;
}
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}
.btn-primary .arrow {
    transition: transform 0.3s ease;
}
.btn-primary:hover .arrow {
    animation: arrow-bounce 0.6s ease-in-out infinite;
}

.btn-secondary {
    background: white;
    color: #1A1A2E;
    padding: 14px 32px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #E8E8E3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #FF6854;
    color: #FF6854;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 24px;
    border: 2px solid #EDEDE8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: #FF6854;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6854, #7C6CF0, #22C997);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover::before {
    opacity: 1;
}

/* === SERVICE ICON BUBBLES === */
.icon-bubble {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.icon-bubble:hover, .card:hover .icon-bubble {
    transform: scale(1.1) rotate(-3deg);
}
.icon-bubble.coral { background: rgba(255, 104, 84, 0.12); }
.icon-bubble.purple { background: rgba(124, 108, 240, 0.12); }
.icon-bubble.green { background: rgba(34, 201, 151, 0.12); }
.icon-bubble.yellow { background: rgba(255, 193, 7, 0.12); }
.icon-bubble.pink { background: rgba(255, 133, 162, 0.12); }

/* === SPARKLE DECORATION === */
.sparkle-container {
    position: relative;
}
.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
}
.sparkle:nth-child(1) { top: -5px; right: -5px; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 50%; right: -8px; animation-delay: 0.6s; }
.sparkle:nth-child(3) { bottom: -5px; left: 30%; animation-delay: 1.2s; }

/* === FORM STYLES === */
.form-input {
    width: 100%;
    padding: 14px 18px;
    background: white;
    border: 2px solid #EDEDE8;
    border-radius: 14px;
    color: #1A1A2E;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: #FF6854;
    box-shadow: 0 0 0 4px rgba(255, 104, 84, 0.1);
}
.form-input::placeholder {
    color: #B0B0A8;
}

/* === STEP CONNECTOR === */
.step-connector {
    position: relative;
}
.step-connector::after {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(50% + 40px);
    width: calc(100% - 80px);
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #FF6854 0px,
        #FF6854 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.3;
}

/* === TESTIMONIAL CARD === */
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 2px solid #EDEDE8;
    transition: all 0.3s ease;
    position: relative;
}
.testimonial-card:hover {
    border-color: #FFD6D0;
    box-shadow: 0 8px 30px rgba(255, 104, 84, 0.08);
}
.testimonial-card .quote-mark {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 48px;
    color: #FF6854;
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

/* === PRICING CARD === */
.pricing-card {
    background: white;
    border-radius: 28px;
    padding: 40px 32px;
    border: 2px solid #EDEDE8;
    transition: all 0.3s ease;
}
.pricing-card.featured {
    border-color: #FF6854;
    box-shadow: 0 12px 40px rgba(255, 104, 84, 0.12);
    transform: scale(1.02);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.08);
}

/* === MENU STYLES === */
.menu-item {
    transition: all 0.3s ease;
    border: 2px solid #EDEDE8;
    border-radius: 16px;
    padding: 16px;
}
.menu-item:hover {
    border-color: #FF6854;
    background: rgba(255, 104, 84, 0.03);
    transform: translateX(4px);
}

/* === PHONE DEMO === */
.phone-frame {
    background: white;
    border-radius: 32px;
    border: 3px solid #EDEDE8;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, #FF6854, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-purple {
    background: linear-gradient(135deg, #7C6CF0, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-green {
    background: linear-gradient(135deg, #22C997, #6EE7B7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === DECORATIVE DOODLES (CSS only) === */
.doodle-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
}
.doodle-ring {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid;
    position: absolute;
}
.doodle-cross {
    position: absolute;
    width: 16px;
    height: 16px;
}
.doodle-cross::before, .doodle-cross::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}
.doodle-cross::before {
    width: 100%; height: 3px; top: 50%; transform: translateY(-50%);
}
.doodle-cross::after {
    height: 100%; width: 3px; left: 50%; transform: translateX(-50%);
}

/* === WAVY SECTION DIVIDER === */
.wave-divider {
    position: relative;
    overflow: hidden;
}
.wave-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #F5F5F0;
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 1;
}

/* === TAG/PILL === */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}
.pill-coral { background: rgba(255, 104, 84, 0.1); color: #FF6854; }
.pill-purple { background: rgba(124, 108, 240, 0.1); color: #7C6CF0; }
.pill-green { background: rgba(34, 201, 151, 0.1); color: #22C997; }
.pill-yellow { background: rgba(255, 193, 7, 0.1); color: #D4A000; }
