/* SERVICES.CSS - Zaktualizowany z nową paletą kolorów */

.services-section {
    background: var(--bg-accent); /* Pomarańczowe tło */
    color: var(--bg-primary); /* Jasny tekst na pomarańczowym */
    padding: 80px 80px;
    position: relative;
    z-index: 10;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(254, 254, 254, 0.7); /* Półprzezroczysty jasny tekst */
    margin-bottom: 30px;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid rgba(254, 254, 254, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    padding: 15px 0;
    padding-left: 20px;
    align-items: flex-start;
    background: rgba(254, 254, 254, 0.05);
}

/* Lewa strona - numer i zawartość */
.service-left {
    flex: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-number {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(254, 254, 254, 0.5);
    margin-bottom: 10px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
}

.service-item:hover .service-number {
    opacity: 1;
    transform: translateY(0);
    color: rgba(254, 254, 254, 0.8);
}

.service-name {
    font-size: 4rem;
    font-weight: 300;
    color: var(--bg-primary);
    transition: all 0.4s ease;
    margin: 60px 0;
    line-height: 1;
}

.service-item:hover .service-name {
    font-size: 2.5rem;
    font-weight: 500;
    transform: translateY(-10px);
    margin: 40px 0;
}

/* Opis usługi - ukryty początkowo */
.service-description {
    font-size: 1.1rem;
    color: rgba(254, 254, 254, 0.8);
    line-height: 1.6;
    max-width: 500px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    margin-bottom: 0;
}

.service-item:hover .service-description {
    opacity: 1;
    max-height: 100px;
    margin-bottom: 20px;
    transform: translateY(0);
}

/* Technologie/narzędzia */
.service-tools {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.service-item:hover .service-tools {
    opacity: 1;
    max-height: 60px;
    transform: translateY(0);
}

.tool-tag {
    font-size: 0.85rem;
    padding: 4px 12px;
    background: rgba(254, 254, 254, 0.15);
    border-radius: 15px;
    color: var(--bg-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    transform: translateY(-5px);
    opacity: 0.8;
    border: 1px solid rgba(254, 254, 254, 0.2);
}

.service-item:hover .tool-tag {
    background: rgba(254, 254, 254, 0.25);
    color: var(--bg-primary);
    transform: translateY(0);
    opacity: 1;
    border-color: rgba(254, 254, 254, 0.3);
}

/* Staggered animation dla narzędzi */
.service-item:hover .tool-tag:nth-child(1) { transition-delay: 0.3s; }
.service-item:hover .tool-tag:nth-child(2) { transition-delay: 0.35s; }
.service-item:hover .tool-tag:nth-child(3) { transition-delay: 0.4s; }
.service-item:hover .tool-tag:nth-child(4) { transition-delay: 0.45s; }
.service-item:hover .tool-tag:nth-child(5) { transition-delay: 0.5s; }

/* Efekt podkreślenia */
.service-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-primary);
    transition: width 0.4s ease;
}

.service-item:hover::after {
    width: 100%;
}

/* Dodatkowy efekt świetlny przy hover */
.service-item:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(254, 254, 254, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Responsywność */
@media (max-width: 1024px) {
    .services-section {
        padding: 60px 60px;
    }
    
    .service-name {
        font-size: 3rem;
    }
    
    .service-item:hover .service-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 40px;
    }
    
    .service-name {
        font-size: 2.5rem;
        margin: 40px 0;
    }
    
    .service-item:hover .service-name {
        font-size: 2rem;
        margin: 30px 0;
    }
    
    .service-tools {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 20px;
    }
    
    .service-name {
        font-size: 2rem;
        margin: 30px 0;
    }
    
    .service-item:hover .service-name {
        font-size: 1.5rem;
        margin: 25px 0;
    }
    
    .service-description {
        font-size: 1rem;
    }
}