.skills-section {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.skill-card {
    background: var(--navy-dark);
    border: 1px solid rgba(229, 190, 86, 0.3);
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(229, 190, 86, 0.15);
}

.skill-card h3 {
    color: var(--gold);
    margin-bottom: 0.8rem;
    font-size: 17pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(229, 190, 86, 0.2);
    padding-bottom: 0.3rem;
}

.card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.skill-tag {
    background: rgba(39, 72, 97, 0.5);
    color: var(--gold-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13pt;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--navy);
    border-color: var(--gold);
    color: var(--gold);
}

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

.project-card {
    background: var(--navy-dark);
    border: 1px solid rgba(229, 190, 86, 0.3);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid rgba(229, 190, 86, 0.2);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    text-align: left;
}

.project-info h3 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 17pt;
}

.project-subtitle {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 15pt;
    margin-bottom: 0.8rem;
    font-style: italic;
}

.project-desc {
    font-size: 14pt;
    line-height: 1.2 !important;
    color: rgba(255, 241, 204, 0.8);
    margin-bottom: 1.2rem;
}

.project-info .card-body {
    justify-content: flex-start;
    padding: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 28, 46, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--navy-dark);
    border: 2px solid var(--gold);
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 0 30px rgba(235, 199, 101, 0.2);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-header h2 {
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.modal-img {
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid rgba(229, 190, 86, 0.2);
}

.modal-text h3 {
    color: var(--gold-light);
    font-size: 17pt;
    margin: 1.5rem 0 0.5rem;
}

.modal-text p {
    line-height: 1.2 !important;
    font-size: 14pt;
}

.modal-text p a{
    color: var(--gold-light);
}

.modal-text p a:hover{
    color: white;
}

.modal-overlay.active {
    display: flex;
}

@media (min-width: 1024px) {
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 900px;
        margin: 1.5rem auto;
    }

    .skill-card:last-child {
        grid-column: span 2;
        width: 50%;
        margin: 0 auto;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}