:root {
    --primary: #0984e3;
    --dark: #2d3436;
    --light: #f9f9f9;
    --white: #ffffff;
    --text-gray: #636e72;
}

html {
    scroll-behavior: smooth; 
}

.project-card img {
    width: 100%;
    height: 300px;           
    object-fit: contain;     
    object-position: center;
    background-color: #f0f0f0; 
    padding: 10px;          
}
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar a {
    text-decoration: none;
    color: var(--dark);
    margin: 0 15px;
    font-weight: 600;
    transition: 0.3s;
}

.navbar a:hover { color: var(--primary); }
.btn.primary {
    
    border-color: #0a0a0a;     
    color: rgb(255, 255, 255);              
}
.btn.primary:hover {

    transform: translateY(-2px); 
}
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://i.pinimg.com/originals/70/4e/b5/704eb5b5e360c2a209fa6a475bacf9c7.gif');
    
    
    background-size: cover;       
    background-position: center;  
    background-attachment: fixed; 
    
    color: var(--white);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--white);
    margin-bottom: 20px;
}

h1 { font-size: 3rem; margin: 0; }

/* Секции */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

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

/* Сетка Обо мне */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-item {
    background: var(--light);
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.project-card:hover { transform: translateY(-10px); }

.project-card img { width: 100%; display: block; }

.project-info { padding: 20px; }

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}
.lang-switch {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 15px;
    transition: 0.3s;
}

.lang-switch:hover {
    background: var(--dark);
}

/* Футер */
.footer {
    padding: 60px 0;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

.footer-links a {
    color: var(--white);
    margin: 0 10px;
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
}

.copy { margin-top: 30px; font-size: 0.8rem; opacity: 0.6; }

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
}
.project-card img {
    width: 100%;
    height: 300px;           
    object-fit: cover;       
    object-position: center;
}