-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
189 lines (176 loc) · 3.58 KB
/
style.css
File metadata and controls
189 lines (176 loc) · 3.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/* Сбрасываем все отступы и границы */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Сброс цвета ссылок */
a:link,
a:visited {
color: #fff;
}
a:hover {
text-decoration: underline;
}
/* Основные стили */
body {
font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
background-color: #000;
color: #fff;
line-height: 1.6;
}
/* Header */
header {
position: fixed;
top: 0; left: 0; right: 0;
background: #111;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
}
#menu-btn {
background: none;
border: none;
color: #fff;
font-size: 1.75rem;
cursor: pointer;
display: none;
}
nav {
display: flex;
gap: 1.5rem;
}
nav a {
padding: 0.5rem;
transition: color 0.3s;
}
nav a.nav-link-active,
nav a:hover {
color: #a855f7;
}
/* Main */
main {
padding: 6rem 2rem 2rem;
}
/* Footer */
footer {
background: #111;
text-align: center;
padding: 1.5rem;
font-size: 0.875rem;
}
/* Photo */
.photo, .photo-lg {
object-fit: cover;
border-radius: 9999px;
border: 4px solid #a855f7;
}
.photo {
width: 10rem;
height: 10rem;
margin: 1rem 0;
animation: pulse 2s infinite;
}
.photo-lg {
width: 14rem;
height: 14rem;
margin-right: 2rem;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%,100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
.typewriter {
font-size: 2.5rem;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
border-right: 0.15em solid #a855f7;
width: auto; /* убираем фиксированную ширину */
animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
50% { border-color: transparent; }
}
/* Skills grid */
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.skill-item {
background: linear-gradient(135deg, #6b21a8, #d8b4fe);
padding: 1rem;
border-radius: 1rem;
text-align: center;
font-weight: 600;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
transition: transform 0.3s;
}
.skill-item:hover {
transform: translateY(-5px);
}
/* Algorithm list */
.algorithm-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: 1rem;
}
.algorithm-item {
background: #1f2937;
padding: 0.75rem 1rem;
border-radius: 0.75rem;
transition: background 0.3s;
}
.algorithm-item:hover {
background: #374151;
}
/* Contacts list */
.contact-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-top: 1rem;
}
.contact-item {
background: linear-gradient(135deg, #4f46e5, #818cf8);
padding: 0.75rem 1rem;
border-radius: 0.75rem;
text-align: center;
transition: transform 0.3s;
}
.contact-item:hover {
transform: translateY(-3px);
}
/* Fade-in */
.fade-in {
opacity: 0;
animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Responsive */
@media (max-width: 768px) {
#menu-btn { display: block; }
nav { display: none; flex-direction: column; gap: 1rem; }
nav.open { display: flex; }
header { flex-direction: column; align-items: flex-start; }
main { padding: 8rem 1rem 2rem; }
.skills-grid,
.contact-list,
.algorithm-list {
display: flex;
flex-direction: column;
}
}