.skills {
    padding: 60px 0;
    background: var(--accent-bg-color);
    text-align: center;
    scroll-margin-top: 100px;
}

.skills h1 {
    font-size: 50px;
    margin-bottom: 30px;
}

.skills_list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.skills_list div {
    width: 130px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.2s ease;
    will-change: transform;
}

.skills_list img {
    width: 80px;
    height: auto;
    transition: transform 0.2s ease;
    will-change: transform;
}

.skills_list h2 {
    font-size: 20px;
    margin-top: 10px;
    transition: transform 0.2s ease;
    will-change: transform;
}

.skills_list div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .skills_list div:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  

/* PROJECTS */


.projects{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px;
    background: var(--section-bg-color);
    padding: 50px 100px ;
}.projects-title {
    align-self: flex-end;
    display: flex;
    align-items: center;
    background: #4A4E69; /* Card color from your palette */
    width: fit-content; /* Only as wide as the content */
    padding: 15px 40px 15px 15px;
    border-radius: 100px; /* pill shape */
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-title img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.projects-title h1 {
    font-size: 40px;
    margin-left: 20px;
    font-weight: 900;
    color: #F2E9E4; /* Cream text */
}

.projects-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr  ;
    gap: 50px;
}
/* --- Core Card Setup --- */
.project-card {
    position: relative; 
    height: 300px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden; /* Vital: crops the image to the card shape */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

}

/* --- Image Setup (The "Under" layer) --- */
.project-card img {
    width: 100%;
    height: 100%; /* Image fills the entire card */
    object-fit: cover; /* Prevents image stretching */
    display: block;
    transition: transform 0.3s ease; /* For an extra zoom effect */
}

/* --- The Overlay (The "Hidden" text layer) --- */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Dark semi-transparent background (The curtain) */
    background-color: rgba(11, 17, 32, 0.85); 
    
    /* Centers the text content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    padding: 30px;
    box-sizing: border-box;
    
    /* The "Invisible" State */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    
    /* Optional: slide the text from bottom up on hover */
    transform: translateY(15px);
}

/* --- The "Active" (Hover) State --- */
.project-card:hover .project-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Optional Zoom Effect on the Image */
.project-card:hover img {
    transform: scale(1.1);
}

/* --- Typo Fix & Styling for text inside the overlay --- */
.project-title {
    color: var(--text-main);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}

.project-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.visit-btn {
    background-color:transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.visit-btn:hover {
    background: var(--accent-color);
    color: #000;
}
