/* Основные стили для лендинга Java разработчика */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --dark: #1a202c;
    --light: #f7fafc;
    --gray: #718096;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    transition: background-color 0.3s, color 0.3s;
}

.dark body {
    background-color: var(--dark);
    color: var(--light);
}

/* Навигация */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.dark .glass-effect {
    background: rgba(26, 32, 44, 0.8);
}

/* Градиентный фон */
.gradient-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Анимации */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: translateY(-5px);
}

.skill-tag {
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.05);
}

/* Утилиты */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Секции */
section {
    padding: 5rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .text-4xl {
        font-size: 2rem;
    }
}


/* =====================================================
   Kafka Bridge — анимация перетока данных
   ===================================================== */

@keyframes flow-dot {
    0%   { top: 0%;   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Верхняя линия — точки идут вниз к иконке Kafka */
.kafka-line-top {
    position: relative;
    overflow: hidden;
}

.kafka-line-top::after,
.kafka-line-top::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 8px #f97316, 0 0 16px rgba(249, 115, 22, 0.4);
    animation: flow-dot 1.8s ease-in-out infinite;
}

.kafka-line-top::before {
    animation-delay: 0.9s;
}

/* Нижняя линия — точки идут вниз от иконки Kafka */
.kafka-line-bottom {
    position: relative;
    overflow: hidden;
}

.kafka-line-bottom::after,
.kafka-line-bottom::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 8px #f97316, 0 0 16px rgba(249, 115, 22, 0.4);
    animation: flow-dot 1.8s ease-in-out infinite;
    animation-delay: 0.45s;
}

.kafka-line-bottom::before {
    animation-delay: 1.35s;
}