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

body {
    font-family: 'Inter', sans-serif;
    color: #f0f0f0;
    overflow-x: hidden;
    background: #0a0a0f;
}

html {
    scroll-behavior: smooth;
}

/* Анимированный градиент для всего фона */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    transition: opacity 4s ease-in-out;
}

.bg-layer-1 {
    background: radial-gradient(circle at 20% 30%, #0f172a, #020617);
    opacity: 1;
    animation: fade1 12s infinite alternate;
}

.bg-layer-2 {
    background: radial-gradient(circle at 80% 70%, #1e1b4b, #020617);
    opacity: 0;
    animation: fade2 12s infinite alternate;
}

@keyframes fade1 {
    0%, 40% { opacity: 1; }
    60%, 100% { opacity: 0; }
}

@keyframes fade2 {
    0%, 40% { opacity: 0; }
    60%, 100% { opacity: 1; }
}

/* Начальный экран — белый фон, чёрный текст */
.initial-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.initial-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.center-content {
    text-align: center;
    transform: translateY(-20px);
}

.center-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.center-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 24px;
    color: #000000;
    letter-spacing: 2px;
}

/* Подсказка скролла */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
    animation: bounce 1.5s infinite;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.scroll-hint.visible {
    opacity: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Шапка (изначально скрыта) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.site-header.reveal {
    opacity: 1;
    pointer-events: auto;
}

.header-logo-wrapper {
    background: #1a1a2e;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.header-title {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #fff, #88ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.lang-switch {
    margin-left: auto;
    display: flex;
    gap: 10px;
    background: rgba(30, 30, 45, 0.6);
    padding: 6px 14px;
    border-radius: 40px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 30px;
    transition: 0.2s;
}

.lang-btn.active {
    background: #2c6e9e;
    color: white;
    box-shadow: 0 0 8px rgba(0,160,255,0.4);
}

/* Основной контент (тёмная тема) */
.main-content {
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
    z-index: 1;
}

.main-content.visible {
    opacity: 1;
}

section {
    padding: 100px 24px 80px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blur-card {
    backdrop-filter: blur(12px);
    background: rgba(20, 20, 32, 0.6);
    border-radius: 48px;
    padding: 48px 32px;
    max-width: 800px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
    transform: translateY(30px);
    opacity: 0;
    transition: 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.blur-card.reveal {
    transform: translateY(0);
    opacity: 1;
}

.blur-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #88ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.blur-card p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #ddd;
}

.projects-btn {
    margin-top: 32px;
    background: #2c6e9e;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.projects-btn:hover {
    background: #1f567d;
    transform: scale(1.02);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #fff, #88ccff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    width: 100%;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    margin-bottom: 60px;
}

.member-card {
    background: rgba(25, 25, 35, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 36px;
    padding: 32px 24px;
    width: 280px;
    text-align: center;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.member-card:hover {
    transform: translateY(-8px);
    background: rgba(40, 40, 55, 0.8);
    border-color: #2c6e9e;
}

.member-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(145deg, #1e2a3a, #0f1722);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: #88ccff;
    border: 2px solid #2c6e9e;
}

.member-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.member-role {
    color: #88ccff;
    margin-bottom: 12px;
    font-weight: 500;
}

.member-bio {
    font-size: 0.9rem;
    color: #bbb;
}

.join-message {
    text-align: center;
    font-size: 1.2rem;
    color: #88ccff;
    margin-top: 20px;
    padding: 20px;
    background: rgba(30,30,45,0.3);
    border-radius: 48px;
}

.projects-section {
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    margin-top: 20px;
}

.project-card {
    background: rgba(25, 25, 35, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 36px;
    padding: 32px 28px;
    max-width: 500px;
    width: 100%;
    text-align: left;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(40, 40, 55, 0.8);
    border-color: #2c6e9e;
}

.project-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 20px;
    background: #fff;
    padding: 0px;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.project-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 20px;
}

.project-tech {
    font-size: 0.85rem;
    color: #88ccff;
    margin-bottom: 20px;
    font-family: monospace;
}

.project-features {
    margin: 20px 0;
    padding-left: 20px;
    color: #bbb;
}

.project-features li {
    margin-bottom: 8px;
}

.project-link {
    display: inline-block;
    background: #2c6e9e;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
    margin-top: 10px;
}

.project-link:hover {
    background: #1f567d;
    transform: scale(1.02);
}

.contact-section {
    text-align: center;
}

.contact-info {
    background: rgba(30,30,45,0.5);
    border-radius: 48px;
    padding: 10px 5px;
    margin-top: 20px;
}

.contact-info p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.contact-info a {
    color: #88ccff;
    text-decoration: none;
    transition: 0.2s;
}

.contact-info a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #777;
}

/* Адаптив */
@media (max-width: 680px) {
    .center-logo { width: 100px; height: 100px; }
    .center-title { font-size: 1.8rem; }
    .blur-card h2 { font-size: 1.8rem; }
    .site-header { padding: 10px 16px; }
    .header-title { font-size: 1rem; }
    .header-logo-wrapper { width: 38px; height: 38px; }
    .header-logo { width: 32px; height: 32px; }
    section { padding: 70px 20px; }
    .team-grid { gap: 24px; }
    .contact-info p { font-size: 1rem; }
    .project-card { padding: 24px 20px; }
    .project-title { font-size: 1.6rem; }
}