:root {
  --primary-color: #6c63ff;
  --secondary-color: #f5f2fe;
  --footer-color: #e2d9ee;
  --box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

body {
  margin-top: 100px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3 {
  font-weight: 700;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

p {
  font-size: 18px;
  line-height: 1.6;
}

/* Навигация */
.navbar {
  box-shadow: var(--box-shadow);
}

.navbar-nav .nav-link {
  color: #000;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: var(--secondary-color);
  padding: 80px 0;
}

/* Project Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Primary Button */
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #5a52d6;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  display: none;
  z-index: 1000;
  transition: background 0.3s ease;
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  background: #5548c8;
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact Section */
.contact-section {
  background-color: var(--secondary-color);
  padding: 60px 20px;
  border-radius: 12px;
  margin-top: 50px;
}

.contact-section h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 40px;
}

.contact-section h4 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.contact-section a {
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

.contact-section a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}


.social-links img {
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}

.social-links a {
  color: var(--primary-color);
  font-size: 30px;
  margin: 0 15px;
  transition: all 0.3s ease-in-out;
}

.social-links a:hover {
  color: #4b4bff;
  transform: scale(1.2);
}

/* Footer */
footer {
  background: var(--footer-color);
  color: #555;
  font-size: 16px;
  padding: 30px 0;
}

html {
  scroll-behavior: smooth;
}
.flower-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.flower {
  position: absolute;
  top: -50px;
  width: 30px;
  height: 30px;
  background-image: url("images/flower.png"); 
  background-size: cover;
  opacity: 0.5;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

