body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #141E30, #243B55);
  color: #eee;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header, footer {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 2.2em;
  color: #00d4ff;
}

nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

nav a {
  color: #eee;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 10px;
  transition: color 0.3s, border-bottom 0.3s;
}

nav a:hover {
  color: #00d4ff;
  border-bottom: 2px solid #00d4ff;
}

nav a.active {
  color: #ffcc00;
  border-bottom: 2px solid #ffcc00;
}

.upload-btn {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #00d4ff;
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.upload-btn:hover {
  background: #00aacc;
}

main {
  flex: 1;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Контактная карточка */
.contact-card {
  background: rgba(255,255,255,0.05);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  max-width: 700px;
  width: 100%;
  text-align: center;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00d4ff, #ff00cc);
  z-index: -1;
}

.contact-card h2 {
  margin-top: 0;
  color: #00d4ff;
  font-size: 2em;
  margin-bottom: 20px;
}

.contact-card .avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: url("https://oasisdayz.ru/favicon.png") no-repeat center/cover;
  box-shadow: 0 0 15px rgba(0,212,255,0.5);
}

.contact-card p {
  margin: 14px 0;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

.contact-card p:last-child {
  border-bottom: none;
}

.contact-card a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: #ff00cc;
}

/* Портфолио */
.skills {
  margin-top: 20px;
  text-align: left;
  font-size: 1em;
  line-height: 1.6;
  padding: 0 10px;
}

.skills p {
  margin: 8px 0;
  border-left: 3px solid #00d4ff;
  padding-left: 10px;
  transition: border-color 0.3s;
}

.skills p:hover {
  border-color: #ff00cc;
}

/* Галерея проектов */
.projects {
  margin-top: 50px;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

.projects h2 {
  font-size: 2em;
  color: #00d4ff;
  margin-bottom: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,212,255,0.3);
}

.project-card h3 {
  margin-top: 0;
  color: #ffcc00;
  font-size: 1.3em;
}

.project-card p {
  font-size: 1em;
  margin: 10px 0 20px;
}

.project-card a {
  display: inline-block;
  padding: 8px 16px;
  background: #00d4ff;
  color: #000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.project-card a:hover {
  background: #00aacc;
}

/* Файловый список */
.file-list {
  max-width: 900px;
  min-width: 500px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

.file-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-list li {
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.08);
  transition: background 0.3s, transform 0.2s;
}

.file-list li:hover {
  background: rgba(0,212,255,0.15);
  transform: translateX(4px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-info span.icon {
  font-size: 1.3em;
}

.file-list a {
  color: #00d4ff;
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 500;
}

.file-list a:hover {
  text-decoration: underline;
}

.size {
  font-size: 0.9em;
  opacity: 0.8;
}

.empty {
  font-style: italic;
  opacity: 0.6;
  text-align: center;
  padding: 20px;
}