/* tremoli - Main Styles */

* {
    scroll-behavior: smooth;
}

/* ===== COLOR UTILITIES ===== */

.gradient-text {
    color: #3AAFA9;
}

.gradient-bg {
    background-color: #1A1A1A;
}

.soft-gradient-bg {
    background-color: #F7F7F7;
}

/* ===== HERO BACKGROUNDS ===== */

.hero-mesh-bg {
    background:
        radial-gradient(ellipse at 25% 50%, rgba(58, 175, 169, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 30%, rgba(194, 120, 130, 0.03) 0%, transparent 50%),
        #FAFAFA;
}

@keyframes meshShift {
    0%   { background-position: 0% 50%, 100% 50%, 50% 0%; }
    33%  { background-position: 100% 0%, 0% 100%, 50% 100%; }
    66%  { background-position: 50% 100%, 50% 0%, 0% 50%; }
    100% { background-position: 0% 50%, 100% 50%, 50% 0%; }
}

.hero-animated-bg {
    background:
        radial-gradient(ellipse 70% 70% at 30% 40%, rgba(58, 175, 169, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 70% 60%, rgba(194, 120, 130, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 50% 20%, rgba(58, 175, 169, 0.08) 0%, transparent 70%);
    background-size: 200% 200%, 200% 200%, 200% 200%;
    animation: meshShift 12s ease-in-out infinite;
    background-color: #FAFAFA;
}

/* ===== NAVBAR ===== */

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ===== BUTTONS ===== */

.btn-primary {
    background-color: #1A1A1A;
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.btn-primary:hover {
    background-color: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58, 175, 169, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary .arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-secondary {
    border: 1.5px solid #DDDDDD;
    color: #1A1A1A;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    border-color: #1A1A1A;
    background: #1A1A1A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== CARDS ===== */

.card-modern {
    background: white;
    border-radius: 14px;
    border: 1px solid #EEEEEE;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.card-modern:hover {
    border-color: #DDDDDD;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #EEEEEE;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.card-glass:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* ===== FORM INPUTS ===== */

.input-modern {
    border: 1.5px solid #EEEEEE;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s ease;
    background: white;
    width: 100%;
    font-size: 0.9rem;
    box-sizing: border-box;
}

select.input-modern {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.input-modern:focus {
    border-color: #3AAFA9;
    box-shadow: 0 0 0 3px rgba(58, 175, 169, 0.1);
    outline: none;
}

/* ===== PROCESS STEP NUMBERS ===== */

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    background-color: #1A1A1A;
}

/* ===== GLOW EFFECT ===== */

.glow-accent {
    box-shadow: 0 0 60px rgba(58, 175, 169, 0.08), 0 0 30px rgba(194, 120, 130, 0.04);
}

/* ===== TAGS & CHIPS ===== */

.code-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C27882;
    border: 1px solid rgba(194, 120, 130, 0.2);
    background: rgba(194, 120, 130, 0.05);
    border-radius: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #444444;
    border: 1px solid #EEEEEE;
    background: #FAFAFA;
    border-radius: 6px;
}

/* ===== SCROLL ANIMATIONS ===== */

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* ===== CARD TILT 3D ===== */

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ===== COUNTER ANIMATION ===== */

.count-up {
    display: inline-block;
}

/* ===== TEXT REVEAL ===== */

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.text-reveal.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MAGNETIC BUTTON ===== */

.magnetic-btn {
    transition: transform 0.2s ease;
}

/* ===== PROCESS LOOP ANIMATION ===== */

@keyframes processLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.animate-process-loop {
    animation: processLoop 8s linear infinite;
}

.animate-process-loop:hover {
    animation-play-state: paused;
}

.animate-process-loop .process-arrow {
    display: inline-block;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(3px); }
}

/* ===== SERVICE TABS ===== */

.service-tab {
    color: #888;
    background: transparent;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-tab:hover {
    color: #1A1A1A;
}

.service-tab.active {
    color: #1A1A1A;
    background: #F7F7F7;
    border-color: #EEEEEE;
}

/* ===== SERVICE CARD ===== */

.service-card {
    transition: all 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ===== STATS ===== */

.stat-number {
    font-size: 3rem;
    font-weight: 800;
}

/* ===== ANIMATIONS ===== */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: grayscale(1) brightness(1); opacity: 0.7; }
    50% { filter: grayscale(0.3) brightness(1.1); opacity: 0.85; }
}

.logo-shimmer {
    animation: shimmer 4s ease-in-out infinite;
}

.logo-shimmer:nth-child(1) { animation-delay: 0s; }
.logo-shimmer:nth-child(2) { animation-delay: 1s; }
.logo-shimmer:nth-child(3) { animation-delay: 2s; }
.logo-shimmer:nth-child(4) { animation-delay: 3s; }

@keyframes slideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .process-step::after {
        display: none;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== TECH GRID ===== */

.tech-grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    transition: all 0.2s ease;
}

.tech-grid-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #3AAFA9;
    transform: translateY(-2px);
}
