* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

section {
    padding: 40px 0;
}

h1, h2, h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

p {
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

/* Шапка */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;
}

.header-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Обо мне */
.about {
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
    padding-left: 50px;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #3498db;
}

/* Проекты */
.projects {
    background: #f9f9f9;
}

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

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

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

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: #2c3e50;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tag {
    background: #ecf0f1;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Контакты */
.contact {
    background: white;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-link {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.contact-link:hover {
    background: #2980b9;
}

/* Подвал */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content p {
        font-size: 1.2rem;
    }
}


/* Форма отправить резюме */
.mail-form {
  max-width: 300px;
  margin: 0 auto 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mail-form-group {
  margin-bottom: 15px;
}

.mail-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  box-sizing: border-box;
}

.mail-input:focus {
  outline: none;
  border-color: #3498db;
}

.mail-button {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.mail-button:hover {
  background-color: #2980b9;
}

.mail-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.mail-success-message {
  margin-top: 10px;
  padding: 10px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  text-align: center;
}

.loading{
    cursor: wait;
}