/* Modern Tech Stack Section Styles */

/* Main Tech Stack Section */
.modern-tech-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.tech-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-decoration::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -8%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: techFloat 25s infinite ease-in-out;
}

.tech-decoration::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    border-radius: 50%;
    animation: techFloat 30s infinite ease-in-out reverse;
}

@keyframes techFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Content Container */
.tech-content {
    position: relative;
    z-index: 2;
}

/* Section Header */
.tech-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tech-subtitle {
    color: #007bff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.tech-title {
    color: #000000;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tech-description {
    color: #495057;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Technology Categories */
.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.tech-category {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.tech-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
    border: 2px solid rgba(0, 123, 255, 0.1);
}

.tech-category:hover .category-icon {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0.1));
    border-color: rgba(0, 123, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 2.2rem;
    color: #007bff;
    transition: all 0.3s ease;
}

.tech-category:hover .category-icon i {
    color: #0056b3;
    transform: scale(1.1);
}

.category-title {
    color: #000000;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.tech-category:hover .category-title {
    color: #007bff;
}

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-item:hover::before {
    transform: scaleX(1);
}

.tech-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: #ffffff;
    border-color: rgba(0, 123, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
}

/* Tech Item Icon */
.tech-item-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover .tech-item-icon {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.1);
}

.tech-item-icon i {
    font-size: 1.5rem;
    color: #007bff;
    transition: all 0.3s ease;
}

.tech-item-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-item-icon img {
    transform: scale(1.1);
}

/* Tech Item Name */
.tech-item-name {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.tech-item:hover .tech-item-name {
    color: #007bff;
}

/* Skills Progress Section */
.skills-section {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 24px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.skills-title {
    text-align: center;
    color: #000000;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.skill-icon i {
    font-size: 1.2rem;
    color: #007bff;
}

.skill-name {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.skill-percentage {
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-tech-section {
        padding: 4rem 0;
    }
    
    .tech-title {
        font-size: 2.2rem;
    }
    
    .tech-description {
        font-size: 1.1rem;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-category {
        padding: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tech-title {
        font-size: 1.8rem;
    }
    
    .tech-category {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.8rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-item {
        padding: 1rem;
    }
    
    .skills-section {
        padding: 2rem;
    }
}

/* Loading Animation */
.tech-item {
    animation: slideInScale 0.6s ease-out forwards;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulse Effect for Icons */
@keyframes techPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tech-item-icon {
    animation: techPulse 3s infinite;
}

.tech-item:hover .tech-item-icon {
    animation: none;
}

/* Advanced Hover Effects */
.tech-item {
    position: relative;
}

.tech-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

.tech-item:hover::after {
    opacity: 1;
}

/* Badge styles for popular technologies */
.tech-item.popular {
    position: relative;
}

.tech-item.popular::before {
    content: 'Popular';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.tech-item.popular:hover::before {
    transform: scale(1);
}