/* ========================
   PORTFOLIO PAGE STYLES
   ======================== */

/* Hero Section */
.portfolio-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 60px;
}

.portfolio-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.portfolio-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent);
    margin-top: 10px;
}

.portfolio-intro {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.section-title {
    margin-bottom: 56px;
}

#recap.section {
    padding-top: 24px;
}

/* ========================
   COMPETENCES TABLE
   ======================== */
.competences-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 56, 56, 0.2);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.competences-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.competences-table thead {
    background: rgba(255, 56, 56, 0.15);
}

.competences-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(255, 56, 56, 0.3);
}

.competences-table td {
    padding: 14px 20px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 56, 56, 0.1);
    font-size: 0.9rem;
}

.competences-table tbody tr {
    transition: all 0.3s ease;
}

.competences-table tbody tr:hover {
    background: rgba(255, 56, 56, 0.08);
}

.competences-table tbody tr:last-child td {
    border-bottom: none;
}

.table-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.table-link:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

/* ========================
   LEVEL BADGES
   ======================== */
.level-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.level-1 {
    background: rgba(255, 255, 255, 0.1);
    color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-2 {
    background: rgba(255, 165, 0, 0.15);
    color: #111111;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.level-3 {
    background: rgba(56, 182, 255, 0.15);
    color: #111111;
    border: 1px solid rgba(56, 182, 255, 0.3);
}

.level-4 {
    background: rgba(255, 56, 56, 0.15);
    color: var(--accent);
    border: 1px solid rgba(255, 56, 56, 0.3);
}

/* ========================
   COMPETENCE SECTIONS
   ======================== */
.competence-section {
    border-top: 1px solid rgba(255, 56, 56, 0.1);
}

.competence-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 56, 56, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.competence-number {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 56, 56, 0.3);
}

.competence-info h2 {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 8px;
}

.competence-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ========================
   PORTFOLIO CARDS
   ======================== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.portfolio-card {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 56, 56, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 56, 56, 0.15);
    border-color: rgba(255, 56, 56, 0.4);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 56, 56, 0.3);
    z-index: 2;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 12px;
    padding-right: 100px;
}

.card-description {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Card Details */
.card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    padding: 18px;
    background: rgba(255, 56, 56, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 56, 56, 0.1);
}

.detail-item h4 {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.detail-item p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.detail-item ul {
    list-style: none;
    padding: 0;
}

.detail-item ul li {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.detail-item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* Tech Tags in cards */
.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(255, 56, 56, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 56, 56, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 56, 56, 0.2);
    border-color: rgba(255, 56, 56, 0.4);
}

.tech-tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* ========================
   LEVELS GRID
   ======================== */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.level-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 56, 56, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.level-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

.level-1-bg {
    background: linear-gradient(135deg, #666, #888);
    box-shadow: 0 4px 15px rgba(136, 136, 136, 0.3);
}

.level-2-bg {
    background: linear-gradient(135deg, #CC8400, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.level-3-bg {
    background: linear-gradient(135deg, #1E90FF, #38B6FF);
    box-shadow: 0 4px 15px rgba(56, 182, 255, 0.3);
}

.level-4-bg {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 4px 15px rgba(255, 56, 56, 0.3);
}

.level-card h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 10px;
}

.level-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ========================
   CTA SECTION
   ======================== */
.portfolio-cta {
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.glow-genz-button.secondary {
    background: transparent;
    border-color: var(--muted);
    color: var(--muted);
}

.glow-genz-button.secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 56, 56, 0.5), 0 0 50px rgba(255, 92, 92, 0.3);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */
@media (max-width: 1024px) {
    .portfolio-main-title {
        font-size: 2.5rem;
    }

    .competence-info h2 {
        font-size: 1.4rem;
    }

    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 112px 0 24px;
        min-height: auto;
    }

    .section-title {
        margin-bottom: 38px;
    }

    #recap.section {
        padding-top: 16px;
    }

    .portfolio-main-title {
        font-size: 2rem;
    }

    .portfolio-subtitle {
        font-size: 0.95rem;
    }

    .competence-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px;
    }

    .competence-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .competence-info h2 {
        font-size: 1.2rem;
    }

    .card-content {
        padding: 20px;
    }

    .card-content h3 {
        font-size: 1.2rem;
        padding-right: 0;
        margin-top: 35px;
        line-height: 1.35;
    }

    .card-badge {
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
    }

    .levels-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .portfolio-main-title {
        font-size: 1.7rem;
    }

    .portfolio-intro {
        font-size: 0.95rem;
    }

    .competences-table th,
    .competences-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .competences-table {
        min-width: 520px;
    }

    .card-badge {
        position: static;
        display: inline-flex;
        margin-bottom: 12px;
    }

    .card-content h3 {
        margin-top: 0;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }

    .level-card {
        padding: 20px 15px;
    }

    .competence-header {
        margin-bottom: 32px;
    }

    .projects-list {
        gap: 22px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
