/* Основные стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #512da8;
}

.nav-brand i {
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  position: relative;
  margin-top: 60px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
}

.logo-container {
  margin-bottom: 2rem;
}

.logo-container i {
  font-size: 4rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.hero-section h1 {
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 3rem;
}

.hero-section .lead {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Skills Section */
.skills-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.skills-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
  font-size: 2.5rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 3rem;
  color: #512da8;
  margin-bottom: 1rem;
  text-align: center;
}

.skill-card h3 {
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 1.5rem;
}

.skill-list li:before {
  content: "▸";
  color: #512da8;
  position: absolute;
  left: 0;
}

.skill-list li:last-child {
  border-bottom: none;
}

/* Portfolio Section */
.portfolio-section {
  padding: 5rem 0;
  background: white;
}

.portfolio-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
  font-size: 2.5rem;
}

.portfolio-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-image {
  margin-bottom: 1.5rem;
  text-align: center;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 3px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-card h4 {
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.5rem;
}

.portfolio-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* App Stores Styles */
.app-stores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.store-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.store-link:hover {
  transform: translateY(-3px);
}

.store-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.store-icon:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: scale(1.1);
}

.portfolio-tech {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.portfolio-tech span {
  background: #512da8;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.contact-section h3 {
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.contact-info {
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  color: #512da8;
  margin-right: 1rem;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #512da8;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Layout Utilities */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4,
.col-md-6 {
  padding: 0 15px;
}

.col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.justify-content-center {
  justify-content: center;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-card,
.portfolio-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .skills-section h2,
  .portfolio-section h2 {
    font-size: 2rem;
  }

  .nav-brand {
    font-size: 1.2rem;
  }

  .navbar {
    padding: 0.8rem 0;
  }

  .skill-card,
  .portfolio-card {
    padding: 1.5rem;
  }

  .app-stores {
    gap: 0.8rem;
  }

  .store-icon {
    width: 35px;
    height: 35px;
  }

  .app-icon {
    width: 100px;
    height: 100px;
  }

  .portfolio-card h4 {
    font-size: 1.3rem;
  }

  .portfolio-card p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-section {
    min-height: 80vh;
    margin-top: 50px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .tech-stack {
    flex-direction: column;
    align-items: center;
  }

  .tech-badge {
    margin-bottom: 0.5rem;
  }

  .app-stores {
    gap: 0.5rem;
  }

  .store-icon {
    width: 30px;
    height: 30px;
  }
}

/* Loading states */
body.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #512da8;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer {
    display: none;
  }

  .hero-section {
    background: white !important;
    color: black !important;
  }

  .skill-card,
  .portfolio-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
