:root {
    --bg: #0b1120; /* Более глубокий темный */
    --surface: #151e31;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #38bdf8, #8b5cf6);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
/* Навигация (Glassmorphism) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(11, 17, 32, 0.7);
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s;
}
.logo:hover { transform: scale(1.02); }
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: var(--bg);
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.logo-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text);
}
.logo-text span { color: var(--accent); }
nav { display: flex; align-items: center; }
nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s;
}
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

.lang-switcher { margin-left: 2rem; display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.lang-switcher button {
    background: transparent; border: none;
    color: var(--text-muted); padding: 4px 10px; border-radius: 4px;
    cursor: pointer; transition: 0.3s; font-size: 0.75rem; font-weight: 600;
}
.lang-switcher button:hover, .lang-switcher button.active { background: var(--surface); color: var(--accent); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* Hero */
.hero {
    padding: 8rem 5% 6rem;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(11,17,32,0) 70%);
    z-index: -1;
    pointer-events: none;
}
.avatar-glow {
    display: inline-block;
    padding: 4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin-bottom: 2rem;
    animation: pulseGlow 3s infinite alternate;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
    100% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.4); }
}
.avatar-logo {
    width: 110px; height: 110px;
    background: var(--bg);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 2.5rem; font-weight: 900; color: var(--text);
}
.hero h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 1rem; }
.hero h2 { 
    font-size: 1.5rem; font-weight: 500; margin-bottom: 1.5rem; 
    background: var(--accent-gradient); -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.hero p { max-width: 650px; margin: 0 auto 2.5rem; color: var(--text-muted); font-size: 1.1rem; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* Кнопки */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 0.8rem 2rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(56,189,248,0.2); }
.btn-secondary { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Stats */
.stats-section {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(21, 30, 49, 0.3);
}
.stats-grid { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1000px; margin: 0 auto; gap: 2rem; }
.stat-item { flex: 1; min-width: 150px; text-align: center; }
.gradient-text {
    font-size: 2.5rem; font-weight: 900;
    background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}
.stat-item p { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* Контейнеры */
.container { padding: 6rem 5%; max-width: 1100px; margin: 0 auto; scroll-margin-top: 80px; }
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 3rem; letter-spacing: -0.5px; text-align: center; }
.about-text { text-align: center; font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.skills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.skills span {
    background: var(--surface); padding: 8px 20px; border-radius: 30px;
    font-size: 0.9rem; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}
.skills span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Проекты */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: var(--surface); border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover { transform: translateY(-8px); border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.card-img { height: 180px; width: 100%; }
.gradient-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.gradient-2 { background: linear-gradient(135deg, #064e3b, #10b981); }
.gradient-3 { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.card-content { padding: 2rem; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--text); }
.card-content p { color: var(--text-muted); font-size: 0.95rem; }

/* Отзывы */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.review-card {
    background: var(--surface); padding: 2rem; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.review-card p { font-size: 1.05rem; color: var(--text); margin-bottom: 1.5rem; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 15px; }
.reviewer-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--accent);
}
.reviewer h4 { font-size: 1rem; color: var(--text); }
.reviewer span { font-size: 0.85rem; color: var(--text-muted); }

/* Форма */
.contact-form { max-width: 600px; margin: 0 auto 3rem; text-align: left; background: var(--surface); padding: 2.5rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.form-group { margin-bottom: 1.2rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; background: var(--bg); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,0.1); }
.form-status { margin-top: 1rem; text-align: center; color: #10b981; font-weight: 600; display: none; }
.direct-contact { text-align: center; margin-top: 3rem; }
.direct-contact a { color: var(--accent); text-decoration: none; font-weight: 600; }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.social-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
.social-links a:hover { color: var(--accent); }

/* Футер */
footer { text-align: center; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem; }
