/* Tech Stack Section */
.tech-stack {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(101, 153, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(101, 153, 233, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.tech-stack-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.tech-stack-title {
    text-align: center;
    margin-bottom: 60px;
}

.tech-stack-title h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6599E9 0%, #8ab4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.tech-stack-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #6599E9, transparent);
    border-radius: 2px;
}

.tech-stack-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-top: 20px;
    font-weight: 300;
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(101, 153, 233, 0.1) 0%, rgba(138, 180, 248, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(101, 153, 233, 0.5);
    box-shadow:
        0 10px 40px rgba(101, 153, 233, 0.2),
        0 0 20px rgba(101, 153, 233, 0.1),
        inset 0 0 20px rgba(101, 153, 233, 0.05);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
}

.tech-icon {
    font-size: 3.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Technology-specific colors */
.tech-item[data-tech="react"] .tech-icon {
    color: #61DAFB;
}

.tech-item[data-tech="vite"] .tech-icon {
    color: #646CFF;
}

.tech-item[data-tech="javascript"] .tech-icon {
    color: #F7DF1E;
}

.tech-item[data-tech="html5"] .tech-icon {
    color: #E34F26;
}

.tech-item[data-tech="css3"] .tech-icon {
    color: #1572B6;
}

.tech-item[data-tech="tailwind"] .tech-icon {
    color: #06B6D4;
}

.tech-item[data-tech="bootstrap"] .tech-icon {
    color: #7952B3;
}

.tech-item[data-tech="illustrator"] .tech-icon {
    color: #FF9A00;
}

.tech-item[data-tech="photoshop"] .tech-icon {
    color: #31A8FF;
}

.tech-item[data-tech="git"] .tech-icon {
    color: #F05032;
}

.tech-item[data-tech="sketchup"] .tech-icon {
    color: #005F9E;
}

.tech-item[data-tech="vray"] .tech-icon {
    color: #00A0D2;
}

.tech-name {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* Animation on scroll */
.tech-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.tech-item:nth-child(1) {
    animation-delay: 0.1s;
}

.tech-item:nth-child(2) {
    animation-delay: 0.15s;
}

.tech-item:nth-child(3) {
    animation-delay: 0.2s;
}

.tech-item:nth-child(4) {
    animation-delay: 0.25s;
}

.tech-item:nth-child(5) {
    animation-delay: 0.3s;
}

.tech-item:nth-child(6) {
    animation-delay: 0.35s;
}

.tech-item:nth-child(7) {
    animation-delay: 0.4s;
}

.tech-item:nth-child(8) {
    animation-delay: 0.45s;
}

.tech-item:nth-child(9) {
    animation-delay: 0.5s;
}

.tech-item:nth-child(10) {
    animation-delay: 0.55s;
}

.tech-item:nth-child(11) {
    animation-delay: 0.6s;
}

.tech-item:nth-child(12) {
    animation-delay: 0.65s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-stack {
        padding: 60px 0;
    }

    .tech-stack-title h2 {
        font-size: 2.2rem;
    }

    .tech-stack-subtitle {
        font-size: 1rem;
    }

    .tech-stack-grid {
        gap: 20px;
    }

    .tech-item {
        width: 120px;
        padding: 25px 15px;
    }

    .tech-icon {
        font-size: 3rem;
    }

    .tech-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .tech-stack-title h2 {
        font-size: 1.8rem;
    }

    .tech-stack-grid {
        gap: 15px;
    }

    .tech-item {
        width: calc(50% - 10px);
        padding: 20px 10px;
    }

    .tech-icon {
        font-size: 2.5rem;
    }
}