/* Tech Stack Page Styles */

/* Main section styling */
#tech-stack {
    padding-top: 3rem;
    min-height: 80vh;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Container for tech skills */
.tech-stack-details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

/* Styling for each skill category container — overrides the dark card from style.css */
.details-container {
    background-color: #ffffff;
    color: var(--color-text-dark);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(28, 51, 71, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 2.5rem;
    width: 100%;
    max-width: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(74, 112, 144, 0.15);
}

.details-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 112, 144, 0.15);
    border-color: rgba(74, 112, 144, 0.4);
}

/* Override dark text rules from style.css for tech-stack light cards */
.details-container p,
.details-container h2,
.details-container h3 {
    color: var(--color-text-dark);
}

/* Grid layout for skill cards */
.article-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Individual skill card styling */
article {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem;
    border-radius: 15px;
    background-color: #f8f9fb;
    box-shadow: 0 5px 15px rgba(28, 51, 71, 0.06);
    border-left: 3px solid var(--color-accent);
    transition: all 0.3s ease;
    text-align: center;
}

article:hover {
    transform: translateY(-10px);
    background-color: white;
    box-shadow: 0 10px 24px rgba(74, 112, 144, 0.15);
    border-left-color: var(--color-bg-mid);
}

/* Icon styling */
article .icon {
    width: 70px;
    height: 70px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

article:hover .icon {
    transform: scale(1.1);
}

/* Text styling */
article h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

article p {
    font-size: 1rem;
    color: var(--color-accent);
    margin: 0.5rem 0 0 0;
}

/* Section subtitle styling */
.section-subtitle {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-accent), var(--color-bg-mid));
    border-radius: 3px;
}

/* Skill level indicator styling */
.skill-level {
    width: 100%;
    height: 8px;
    background-color: #D0DCE8;
    border-radius: 10px;
    margin: 0.75rem 0;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--color-accent), var(--color-bg-mid));
    border-radius: 10px;
}

/* Page title styling */
#tech-stack .title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

#tech-stack .section__text__p1 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Media queries for responsive design */
@media screen and (max-width: 1200px) {
    #tech-stack {
        padding: 2rem 1rem;
    }

    .article-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .details-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 15px;
    }

    article {
        padding: 1.25rem;
        border-radius: 12px;
    }

    article .icon {
        width: 55px;
        height: 55px;
        padding: 0.75rem;
    }

    .section-subtitle {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.6rem;
    }
}

@media screen and (max-width: 768px) {
    #tech-stack {
        padding: 1.5rem 0.75rem;
    }

    .article-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .details-container {
        padding: 1.25rem;
        border-radius: 12px;
    }

    article {
        padding: 1rem;
    }

    article .icon {
        width: 50px;
        height: 50px;
        padding: 0.5rem;
    }

    article h3 {
        font-size: 1.1rem;
    }

    #tech-stack .title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .article-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .details-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    article {
        padding: 0.75rem;
    }

    article .icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
        padding: 0.4rem;
    }

    article h3 {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }

    article p {
        font-size: 0.8rem;
    }

    .section-subtitle {
        font-size: 1.3rem;
    }
}
