:root {
  --main: #B347FF;
  --main-dark: #8A2BE2;
  --hover: #DA80FF;
  --bg-dark: #0A0A0A;
  --bg-darker: #050505;
  --bg-light: #fff;
  --bg-lighter: #f8f9fa;
  --text-light: #fff;
  --text-dark: #222;
  --text-gray: #888;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(179, 71, 255, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Video background */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#bg-video {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.6);
}

/* Navigation */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--main);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--main);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--main);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero section */
.hero {
  text-align: center;
  padding: 180px 20px 100px;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(179, 71, 255, 0.5);
}

.tagline {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 15px 35px;
  background-color: var(--main);
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cta-button.secondary {
  background-color: transparent;
  border: 2px solid var(--main);
  color: var(--main);
}

.cta-button.secondary:hover {
  background-color: var(--main);
  color: white;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 71, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(179, 71, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 71, 255, 0);
  }
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

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

h2 {
  font-size: 2.5rem;
  color: var(--main);
  margin-bottom: 15px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service {
  background-color: rgba(28, 28, 28, 0.6);
  backdrop-filter: blur(8px);
  padding: 30px 20px;
  border-radius: 15px;
  transition: var(--transition);
  text-align: center;
  border: 1px solid rgba(179, 71, 255, 0.1);
}

.service:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--main);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(179, 71, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service:hover .service-icon {
  background: var(--main);
  transform: rotateY(180deg);
}

.service-icon i {
  font-size: 2rem;
  color: var(--main);
  transition: var(--transition);
}

.service:hover .service-icon i {
  color: white;
}

.service h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.service p {
  color: var(--text-gray);
  font-size: 1rem;
}

/* About */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main);
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-gray);
}

/* Contact */
.contact-wrapper {
  display: flex;
  gap: 50px;
  margin-top: 50px;
}

.contact-form {
  flex: 1;
  background: rgba(28, 28, 28, 0.6);
  backdrop-filter: blur(8px);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(179, 71, 255, 0.1);
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(179, 71, 255, 0.3);
  background: rgba(10, 10, 10, 0.5);
  color: var(--text-light);
  transition: var(--transition);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--text-gray);
  transition: var(--transition);
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background: var(--bg-dark);
  padding: 0 5px;
  color: var(--main);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}



/* Form Message */
.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  display: none;
  text-align: center;
}

.form-message.success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.3);
  color: #28a745;
  display: block;
}

.form-message.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
  display: block;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  background: #4CAF50;
  color: white;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 10000;
  display: none;
  animation: slideIn 0.5s, fadeOut 0.5s 2.5s forwards;
  max-width: 300px;
}

.notification i {
  margin-right: 10px;
}

@keyframes slideIn {
  from { right: -300px; opacity: 0; }
  to { right: 20px; opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.contact-info {
  flex: 1;
  padding: 30px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--main);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.info-item i {
  width: 40px;
  height: 40px;
  background: rgba(179, 71, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--main);
}

.info-item span {
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(179, 71, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main);
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: unset;
}

.social-links a:hover {
  background: var(--main);
  color: white;
  transform: translateY(-5px);
}

/* Floating chat */
.floating-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--main);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  transition: var(--transition);
}

.floating-chat a {
  color: white;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: unset;
}

.floating-chat:hover {
  transform: scale(1.1);
}

/* Scroll to Top */
#scrollTop {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: var(--main);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

#scrollTop i {
  color: white;
  font-size: 1.2rem;
}

#scrollTop.active {
  opacity: 1;
  visibility: visible;
}

#scrollTop:hover {
  background: var(--hover);
  transform: translateY(-5px);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 50px 0 20px;
  color: var(--text-light);
}

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

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--main);
}

.footer-copy {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  .contact-wrapper {
    flex-direction: column;
  }
  
  .about-image {
    margin-top: 30px;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .tagline {
    font-size: 1.2rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-darker);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero {
    padding: 150px 20px 80px;
  }
  
  section {
    padding: 80px 0;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .cta-button {
    width: 100%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .stat {
    min-width: 100%;
  }
}

/* Стилі для посилань послуг */
.service-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.service-link:hover {
  transform: translateY(-10px);
}

.service {
  position: relative;
  overflow: hidden;
}

.service-cta {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  background: var(--main);
  color: white;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.service-link:hover .service-cta {
  bottom: 0;
  opacity: 1;
}

/* Анімація іконок */
.service-link:hover .service-icon {
  transform: rotateY(180deg);
  background: var(--main);
}

.service-link:hover .service-icon i {
  color: white;
}
