/* Стилизация шапки */
header {
    background: #222;
    color: white;
    padding: 1rem;
}

nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

nav a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

nav a:hover::after {
    opacity: 1;
}

/* Геройский раздел */
.hero {
    text-align: center;
    padding: 5rem;
}

.hero img {
    width: 200px;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.hero h1 {
    color: black;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8), 
        0 0 20px rgba(255, 255, 255, 0.5), 
        0 0 40px rgba(255, 255, 255, 0.3);
    font-size: 2rem; 
    position: relative;
    z-index: 2; 
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 0, 255, 0.6); }
    50% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.9); }
}

.hero h1 {
    animation: glow 2s ease-in-out infinite;
}

/* Портфолио */
.project {
    margin: 2rem;
    padding: 1rem;
    background: #f5f5f5;
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Контакты */
.social-links a {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: #222;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

/* Стили для страницы "О себе" */
.about-hero {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
    color: #666;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    line-height: 1.6;
}

.principles ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.principles li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.principles li::before {
    content: "•";
    color: #007BFF;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.technologies h2 {
    color: #007BFF;
    margin-top: 1.5rem;
}

.contact-call {
    margin-top: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* Стили для портфолио */
.portfolio-hero {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 2rem 0;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-tech span {
    background: #007BFF;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.btn-github {
    background: #24292f;
    color: white;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    gap: 0.5rem;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-github:hover {
    background: #1a1f24;
}

.github-link {
    text-align: center;
    margin-top: 3rem;
}

/* Стили для страницы контактов */
.contact-hero {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-form {
    padding: 4rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    border-color: #007BFF;
    outline: none;
}

.btn-primary {
    background: #007BFF;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.social-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.social-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #007BFF;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    max-width: 200px;
    margin: 0 auto;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Основной фон */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    position: relative;
}

/* Фоновое изображение */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Чтобы фон был под контентом */
    opacity: 0.9; /* Прозрачность (опционально) */
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Подгоняет изображение под размер контейнера */
}

header, main, footer {
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 0, 255, 0.6)
    }
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.feedback-button {
    position: fixed;
    right: 1rem;
    top: 1rem;
    background: #007BFF;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s;
}

.feedback-button:hover {
    background: #0056b3;
}

.feedback-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.feedback-form.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.feedback-form iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px 8px 0 0;
    min-height: 700px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #222;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    z-index: 1001;
}