@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=Fira+Code:wght@400;500&display=swap');

:root {
    --logo-bg: #A3E635;
    /* Lime 400 */
    --logo-text: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #fff;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.lang-active {
    background-color: var(--logo-bg);
    color: var(--logo-text) !important;
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.4);
}

/* Універсальний стиль контейнера іконки */
.icon-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    /* slate-100 */
    color: #475569;
    /* slate-600 */
}

.icon-box:hover {
    background-color: var(--logo-bg);
    color: var(--logo-text);
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 25px rgba(163, 230, 53, 0.4);
}

/* Картки та проєкти */
.service-card,
.project-card,
.process-card {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
}

.service-card,
.process-card {
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.service-card:hover,
.process-card:hover {
    border-color: var(--logo-bg);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.service-card:hover .icon-box,
.process-card:hover .icon-box {
    background-color: var(--logo-bg);
    color: var(--logo-text);
    box-shadow: 0 10px 25px rgba(163, 230, 53, 0.4);
}

.project-card {
    filter: grayscale(1);
    opacity: 0.8;
    border: 1px solid #f1f5f9;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-card:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--logo-bg);
}

.project-logo {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.btn-primary {
    background-color: var(--logo-bg);
    color: var(--logo-text);
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 20px 40px rgba(163, 230, 53, 0.4);
}

/* Hero Section */
.hero-bg {
    position: relative;
    background-color: #f8fafc;
    background-image:
        radial-gradient(circle at center, rgba(163, 230, 53, 0.03) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 1)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    perspective: 1200px;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.parallax-layer {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.cursor-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(163, 230, 53, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

#contact-modal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#contact-modal.active {
    display: flex;
    opacity: 1;
}
