/* Reformed Experimentation Toolkit Styles */
.tech-stack-section {
    position: relative;
    overflow: hidden;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tech-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 30%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tech-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    position: relative;
    z-index: 1;
}

.tech-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

.tech-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tech-proficiency {
    font-size: 0.9rem;
    color: #00ff88;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.proficiency-bars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0.5rem 0;
}

.prof-bar {
    width: 6px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.prof-bar.active {
    background: linear-gradient(45deg, #00ff88, #00ccff);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.tech-experience {
    font-size: 0.85rem;
    color: #ccc;
    text-align: center;
    line-height: 1.4;
    opacity: 0.9;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.learn-more {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-style: italic;
}

.tech-card:hover .learn-more {
    opacity: 1;
}

/* Enhanced Filter Buttons */
.tech-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 136, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* Tech Modal Styles */
.tech-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-modal.active {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 1;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.tech-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.modal-title {
    color: #00ff88;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.modal-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.modal-body {
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
}

.modal-proficiency,
.modal-experience,
.modal-level {
    margin-bottom: 1.5rem;
    color: #ccc;
    line-height: 1.6;
}

.modal-proficiency strong,
.modal-experience strong,
.modal-level strong {
    color: #00ff88;
    display: block;
    margin-bottom: 0.5rem;
}

.modal-prof-bars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 1rem 0;
}

.modal-prof-bars .prof-bar {
    width: 8px;
    height: 25px;
}

.prof-text {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* Enhanced Search Input */
.tech-search {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tech-search input {
    padding: 15px 25px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    width: 350px;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
}

.tech-search input::placeholder {
    color: #666;
    transition: color 0.3s ease;
}

.tech-search input:focus {
    background: rgba(0, 255, 136, 0.05);
    transform: scale(1.02);
}

.tech-search input:focus::placeholder {
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-card {
        padding: 1.5rem;
        min-height: 200px;
    }

    .tech-search input {
        width: 280px;
        font-size: 0.9rem;
    }

    .tech-filters {
        gap: 0.8rem;
        padding: 1rem;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .tech-card {
        padding: 1.2rem;
    }

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

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

    .tech-search input {
        width: 240px;
    }
}

/* Animation enhancements */
@keyframes techCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tech-card {
    animation: techCardEntrance 0.6s ease forwards;
}

.tech-card:nth-child(1) {
    animation-delay: 0s;
}
.tech-card:nth-child(2) {
    animation-delay: 0.1s;
}
.tech-card:nth-child(3) {
    animation-delay: 0.2s;
}
.tech-card:nth-child(4) {
    animation-delay: 0.3s;
}
.tech-card:nth-child(5) {
    animation-delay: 0.4s;
}
.tech-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Enhanced Tech Card Styles */
.tech-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tech-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    text-align: center;
}

.tech-proficiency {
    font-size: 0.9rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
    text-align: center;
}

.tech-experience {
    font-size: 0.8rem;
    color: #cccccc;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.learn-more {
    font-size: 0.7rem;
    color: #999;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover .learn-more {
    opacity: 1;
}

/* Modal Styles */
.tech-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-modal.active {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.modal-body {
    text-align: center;
}

.modal-proficiency,
.modal-experience,
.modal-level {
    margin-bottom: 1.5rem;
    color: #fff;
}

.modal-proficiency strong,
.modal-experience strong,
.modal-level strong {
    color: #00ff88;
}
