/* Стилі для сторінки веб-розробки */
.service-hero {
    position: relative;
    overflow: hidden;
    /* padding: 150px 0 100px; */
    padding: 0px 40px 40px 40px;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-gradient {
    background: linear-gradient(90deg, var(--main), var(--hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Стилі для технологій */
.tech-stack {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.tech-item {
    width: 70px;
    height: 70px;
    background: rgba(179, 71, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.1) rotateY(180deg);
    background: var(--main);
    color: white;
    box-shadow: 0 10px 20px rgba(179, 71, 255, 0.3);
}

.tech-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
    z-index: 10;
}

.tech-item:hover::after {
    opacity: 1;
    bottom: -35px;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Стилі для процесу розробки */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    background: rgba(28, 28, 28, 0.6);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--main);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
}

.process-step.animate {
    opacity: 1;
}

.process-step:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(179, 71, 255, 0.3);
}

.process-step i {
    transition: var(--transition);
    margin-right: 10px;
}

.process-step:hover i {
    transform: scale(1.2);
    color: var(--main);
}

/* Анімації */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилі для CTA портфоліо */
.portfolio-cta {
    text-align: center;
    padding: 80px 0;
    background: rgba(28, 28, 28, 0.4);
    margin-top: 50px;
}

.portfolio-cta .cta-button.secondary {
    margin-top: 30px;
}

/* Стилі для нового блоку технологій */
.tech-stack-container {
    margin: 60px 0;
    text-align: center;
}

.tech-stack-title {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.tech-stack-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--main);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(28, 28, 28, 0.6);
    border-radius: 12px;
    padding: 25px 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(179, 71, 255, 0.1);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(179, 71, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(179, 71, 255, 0.2);
    border-color: var(--main);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--main);
    transition: var(--transition);
}

.tech-card:hover .tech-icon {
    transform: scale(1.2);
    color: white;
}

.tech-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Анімація для карток технологій */
@keyframes techCardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tech-card {
    opacity: 0;
    animation: techCardAppear 0.6s ease forwards;
}

.tech-card:nth-child(1) { animation-delay: 0.1s; }
.tech-card:nth-child(2) { animation-delay: 0.2s; }
.tech-card:nth-child(3) { animation-delay: 0.3s; }
.tech-card:nth-child(4) { animation-delay: 0.4s; }
.tech-card:nth-child(5) { animation-delay: 0.5s; }
.tech-card:nth-child(6) { animation-delay: 0.6s; }

/* Адаптивність */
@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивність */
@media (max-width: 768px) {
    .tech-item {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}


/* 3D Background Styles */
.3d-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  
  #3d-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    transition: opacity 0.5s ease;
  }

  /* Зробимо контейнер відносним для позиціонування */
  .section-container {
    background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 40px;
  /* margin: 40px auto; */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(179, 71, 255, 0.1);
  transition: all 0.5s ease;
    position: relative;
    z-index: 2;
  }
  
  .section-container:hover ~ .3d-background #3d-canvas {
    border-color: rgba(179, 71, 255, 0.3);
    box-shadow: 0 15px 40px rgba(179, 71, 255, 0.2);
    opacity: 0.3;
  }
  
  