/* Базовые настройки шрифтов и кодировки */
@charset "UTF-8";

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d28;
    --accent-frontend: #00d4ff;
    --accent-backend: #ff6b35;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-bg: #1e222e;
    --success: #10b981;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

/* Fallback система шрифтов */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 
                 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 
                 'Helvetica Neue', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Заголовки с fallback */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 
                 'Segoe UI', sans-serif;
    font-weight: 600;
}

/* Принудительная загрузка кириллических символов */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica');
    unicode-range: U+0400-04FF;
}

@font-face {
    font-family: 'Space Grotesk Fallback';
    src: local('Arial'), local('Helvetica');
    unicode-range: U+0400-04FF;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preloader-content {
    text-align: center;
}

.n-code-logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.n-letter {
    color: var(--accent-frontend);
}

.dash {
    color: var(--text-primary);
}

.code-text {
    color: var(--accent-backend);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-frontend), var(--accent-backend));
    width: 0%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.binary-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}

.team-presentation {
    text-align: center;
    z-index: 2;
}

.team-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.developer-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.dev-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    width: 280px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.dev-card.frontend-dev {
    border-color: var(--accent-frontend);
}

.dev-card.backend-dev {
    border-color: var(--accent-backend);
}

.dev-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dev-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.frontend-dev .dev-avatar {
    background: linear-gradient(135deg, var(--accent-frontend), transparent);
    color: var(--accent-frontend);
}

.backend-dev .dev-avatar {
    background: linear-gradient(135deg, var(--accent-backend), transparent);
    color: var(--accent-backend);
}

.dev-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.dev-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.dev-skills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tag {
    background: var(--bg-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.synergy {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pulse-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    position: relative;
}

.synergy span {
    color: var(--text-secondary);
    font-weight: 500;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--text-secondary);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateX(-50%) rotate(45deg);
}

/* About Team */
.workflow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-step {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    flex: 1;
    min-width: 200px;
    transition: var(--transition);
}

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

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.process-step h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.process-step p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.step-tech {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.step-tech span {
    background: var(--bg-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.process-arrow {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

/* Tech Stack */
.stack-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.stack-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.frontend-title {
    color: var(--accent-frontend);
}

.backend-title {
    color: var(--accent-backend);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateX(10px);
}

.tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tech-item[data-tech="html"] .tech-icon {
    background: #e34f26;
    color: white;
}

.tech-item[data-tech="css"] .tech-icon {
    background: #1572b6;
    color: white;
}

.tech-item[data-tech="js"] .tech-icon {
    background: #f7df1e;
    color: black;
}

.tech-item[data-tech="python"] .tech-icon {
    background: #3776ab;
    color: white;
}

.tech-item[data-tech="flask"] .tech-icon {
    background: #000000;
    color: white;
}

.tech-item[data-tech="fastapi"] .tech-icon {
    background: #009688;
    color: white;
}

.tech-item span {
    flex: 1;
    font-weight: 500;
}

.tech-progress {
    width: 100px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s ease;
}

.tech-item[data-tech="html"] .progress-bar {
    background: #e34f26;
}

.tech-item[data-tech="css"] .progress-bar {
    background: #1572b6;
}

.tech-item[data-tech="js"] .progress-bar {
    background: #f7df1e;
}

.tech-item[data-tech="python"] .progress-bar {
    background: #3776ab;
}

.tech-item[data-tech="flask"] .progress-bar {
    background: #000000;
}

.tech-item[data-tech="fastapi"] .progress-bar {
    background: #009688;
}

/* Projects */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    color: white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-preview {
    height: 200px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.preview-content {
    width: 100%;
    height: 100%;
}

.browser-bar {
    height: 30px;
    background: #2d3748;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid #4a5568;
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4a5568;
}

.preview-screen {
    height: calc(100% - 30px);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-demo {
    background: #1a202c;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-backend);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.endpoint {
    color: var(--accent-backend);
    margin-bottom: 0.5rem;
}

.response {
    color: var(--success);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tech-used {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--bg-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.contribution {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.frontend-contrib,
.backend-contrib {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.frontend-contrib {
    color: var(--accent-frontend);
}

.backend-contrib {
    color: var(--accent-backend);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-frontend);
}

/* Why Us */
.comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.comparison-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    flex: 1;
    min-width: 300px;
    transition: var(--transition);
}

.comparison-card.highlighted {
    border: 2px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(135deg, var(--accent-frontend), var(--accent-backend)) border-box;
}

.comparison-card h4 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.solo-dev li i {
    color: #ef4444;
}

.our-team li i {
    color: var(--success);
}

.vs-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
}

.status-indicator.available::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--success);
    opacity: 0.5;
    animation: pulse 2s infinite;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(10px);
}

.contact-method i {
    width: 20px;
    color: var(--accent-frontend);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    transform: translateY(-3px);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid #374151;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-frontend);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-frontend), var(--accent-backend));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .n-letter {
    color: var(--accent-frontend);
}

.footer-logo .dash {
    color: var(--text-primary);
}

.footer-logo .code-text {
    color: var(--accent-backend);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.typing-demo {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border-left: 4px solid var(--accent-frontend);
}

.typing-demo h4 {
    color: var(--accent-frontend);
    margin-bottom: 1rem;
}

.typing-demo p {
    color: var(--text-secondary);
    line-height: 1.6;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-frontend);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}