/* ============================================
            About REST Labs
   ============================================ */

#about-restlabs {
    margin: 0 auto;
    padding: 2rem 1rem;
    color: var(--text-color);
    max-width: 1200px;
}

.rest-labs-logo {
    display: block;
    margin: 1rem auto;
    width: clamp(110px, 20vw, 250px);
    height: auto;
}

.rest-labs-header h3 {
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 1rem 0;
    color: #004a83;
}

.rest-labs-description {
    margin: 0 auto 2rem;
    padding: 0 1rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.3;
    color: #333333;
    text-align: justify;
}

/* Key Features */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2rem, 3vw, 3rem);
    justify-content: center;
    margin-bottom: 3rem;
}

.feature-box {
    color: #3498db;
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    width: clamp(200px, 100%, 300px);
    box-shadow: var(--shadow-medium);
    position: relative;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-icon {
    position: absolute;
    font-size: 1rem;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    position: absolute;
    background: var(--card-role-bg);
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;

    display: flex;
    /* REQUIRED */
    align-items: center;
    /* vertical centre */
    justify-content: center;
    /* horizontal centre */

    top: -18px;
    left: 10px;
}

.feature-title {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 700;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    color: var(--light-bg-txt-subheader);
}

.feature-text {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    line-height: 1.6;
    word-wrap: break-word;
    font-style: italic;
    color: #555;
}

.social-connect .social-heading {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 1rem 0;
    color: #004a83;
}

.social-connect .social-icons {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 2rem);
    /* margin-bottom: 2rem; */
}

.social-connect .social-icons a {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: #29769f;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.button {
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.6);
    animation: sway 2s infinite alternate;
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 500px;
    transition: transform 0.5s, box-shadow 0.5s;
}

.button:hover {
    transform: rotate(-360deg);
    box-shadow: 0 0 20px 0 rgba(24, 188, 253, 0.6);
}


.icon {
    filter: drop-shadow(0 2px 4px rgba(216, 216, 216, 0.6));
    transition: transform 0.5s;
}

.icon:hover {
    transform: scale(1.5);
    filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.9));
    border-radius: 50%;
    padding: 0.5rem;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.icon-g {
    color: #1566d1;
}

.icon-g:hover {
    background: linear-gradient(45deg, #1566d1, #00ddfa);
}

.icon-f {
    color: #1877F2;
}

.icon-f:hover {
    background: linear-gradient(45deg, #1877F2, #4AB3F4);
}

.icon-x {
    color: #000000;
}

.icon-x:hover {
    background: linear-gradient(45deg, #000000, #434343);
}

.icon-l {
    color: #0A66C2;
}

.icon-l:hover {
    background: linear-gradient(45deg, #0A66C2, #4A8FE7);
}

.icon-y {
    color: #FF0000;
}

.icon-y:hover {
    background: linear-gradient(45deg, #FF0000, #FF7A00);
}
