/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Основные стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Убираем подчеркивания у всех ссылок */
a {
    text-decoration: none;
}

/* Основной контент */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Секция с фото и именем */
.hero {
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* Кнопка телеграма */
.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.telegram-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.telegram-btn svg {
    width: 18px;
    height: 18px;
}

/* Секция проектов */
.projects {
    padding: 2rem 0 3rem 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card.active:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-card.inactive {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    cursor: default;
}

.project-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.project-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-link {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
    margin-top: auto;
}

.project-card.active:hover .project-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 2rem 0 1.5rem 0;
    }
    
    .profile-container {
        gap: 0.8rem;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .project-card h3 {
        font-size: 1.5rem;
    }
    
    .telegram-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .project-card h3 {
        font-size: 1.3rem;
    }
    
    .telegram-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-card {
        padding: 1rem;
    }
}