.profile-section {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    width: 90%;
}

.parent {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}

/* Profile Card */
.profile-card {
    grid-area: 1 / 1 / 7 / 4;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-picture {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.profile-card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 600;
}

/* Social Icons */
.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  
  .Btn {
    align-items: center;
    justify-content: flex-start;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 50px;
    width: 50px;
    transition: width 0.3s ease;
    text-align: center;
  }
  
  /* Kolory przycisków (kolejne elementy w kontenerze) */
  .Btn:nth-child(1) {
    background-color: #3b5998; /* Facebook */
  }
  .Btn:nth-child(2) {
    background-color: #0077b5; /* LinkedIn */
  }
  .Btn:nth-child(3) {
    background-color: #e4405f; /* Instagram */
  }
  
  /* Styl ikonki */
  .Btn .svgIcon {
    width: 24px;
    height: 24px;
    fill: white;
     flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  /* Ukryty tekst – pojawi się po najechaniu */
  .Btn .text {
    position: absolute;
    color: #fff;
    width: 120px;
    font-weight: 600;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.2s ease 0.1s;
    left: 6px;
  }
  
  /* Efekt hover – rozszerzenie przycisku */
  .Btn:hover {
    width: 130px;
    transition-duration: 0.4s;
    border-radius: 20px;
  }
  
  /* Efekt hover – pokazanie tekstu */
  .Btn:hover .text {
    opacity: 1;
    transition-duration: 0.4s;
  }
  
  /* Efekt hover – ukrycie ikonki */
  .Btn:hover .svgIcon {
    opacity: 0;
    transition-duration: 0.3s;
  }
  
  .svgIcon {
    transition-duration: 0.3s;
  }
  
  .svgIcon path {
    fill: white;
  }
  
/* Grid obszary dla pozostałych divów */
.div2 {
    grid-row: 1 / span 2;
    grid-column: 4 / span 2;
}

.div3 {
    grid-row: 1 / span 2;
    grid-column: 6 / span 2;
}

.div4 {
    grid-row: 3 / span 2;
    grid-column: 4 / span 2;
}

.div5 {
    grid-row: 3 / span 2;
    grid-column: 6 / span 2;
}

.div6 {
    grid-area: 1 / 8 / 7 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.div7 {
    grid-area: 5 / 4 / 7 / 8;
    border: 3px solid transparent;
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    color: #fff;
}

/* Wspólne style dla div2, div3, div4, div5, div6 */
.div2,
.div3,
.div4,
.div5,
.div6 {
    border-radius: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    color: #fff;
}

/* Efekt hover – gradientowy border, obejmujący padding */
.div2:hover,
.div3:hover,
.div4:hover,
.div5:hover,
.div6:hover,
.div7:hover {
    cursor: pointer;
}



.div2 p,
.div3 p,
.div4 p,
.div5 p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Style dla ikon w div6 */
.div6 i {
    font-size: 1.4rem;
    background-color: #fff;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.9s;
}

.div6 i:hover {
    color: #fff;
    background: linear-gradient(to bottom, #516b34, #b6ca62);
    transition: background-color 0.9s;
}

.div6 a {
    color: #fff;
}

.div6 a i {
    font-size: 1.2rem;
}

/* Stat Items */
.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* Responsive style */
@media (max-width: 768px) {

    .profile-section {
        width: 90%;
    }

    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        width: 100%;
    
        margin: 0 auto;
    }

    .profile-picture{
        width: 90%;
    }
  
    .profile-card,
    .div2,
    .div3,
    .div4,
    .div5,
    .div6{
        grid-area: auto;
        padding: 30px 0px;
    }

    .div7 {
        grid-area: auto;
        padding: 10px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
  
    .div6 {
        flex-direction: row;
        gap: 10px;
    }
  
    .profile-card h3 {
        font-size: 1rem;
    }
  
    .stat-number {
        font-size: 1.5rem;
    }
  
    .stat-label {
        font-size: 0.8rem;
    }
  
}
