/* Explain: Component styles including gradient text, animations, and 3D social buttons. */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.tech-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.tech-marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 2rem;
    animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.social-3d-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 0px rgba(0,0,0,0.2), 0 8px 15px rgba(0,0,0,0.2);
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.social-3d-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 0px rgba(0,0,0,0.2), 0 12px 20px rgba(0,0,0,0.3);
}

.social-3d-btn:active {
    transform: translateY(4px) scale(0.95);
    box-shadow: 0 0px 0px rgba(0,0,0,0.2), 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes logo-float-glow {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: drop-shadow(0 0 0px transparent);
    }
    50% { 
        transform: translateY(-3px) scale(1.03); 
        filter: drop-shadow(0 5px 12px rgba(0, 92, 230, 0.4));
    }
}

.logo-attractive {
    animation: logo-float-glow 3.5s ease-in-out infinite;
    will-change: transform, filter;
}

/* أزرار التواصل العائمة بتأثير 3D احترافي */
.floating-contacts {
    position: fixed;
    bottom: 1.5rem;
    inset-inline-start: 1.5rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    perspective: 600px;
}

.floating-contact {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    text-decoration: none;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease, filter 0.35s ease;
    animation: floating-bob 3.8s ease-in-out infinite;
    box-shadow:
        0 7px 0 rgba(0, 0, 0, 0.22),
        0 12px 22px rgba(0, 0, 0, 0.32),
        inset 0 2px 4px rgba(255, 255, 255, 0.55),
        inset 0 -5px 10px rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    will-change: transform;
}

.floating-contact::after {
    content: "";
    position: absolute;
    top: 7%;
    left: 18%;
    width: 50%;
    height: 34%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
    opacity: 0.9;
}

.floating-contact:hover {
    animation: none;
    transform: translateY(-7px) scale(1.12) rotate(-4deg);
    filter: brightness(1.08);
    box-shadow:
        0 15px 0 rgba(0, 0, 0, 0.22),
        0 22px 38px rgba(0, 0, 0, 0.42),
        inset 0 2px 4px rgba(255, 255, 255, 0.6),
        inset 0 -5px 10px rgba(0, 0, 0, 0.28);
}

.floating-contact:active {
    animation: none;
    transform: translateY(4px) scale(0.94) rotate(0deg);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.22),
        0 5px 10px rgba(0, 0, 0, 0.3),
        inset 0 3px 8px rgba(0, 0, 0, 0.35);
}

.floating-contact--wa {
    background: radial-gradient(circle at 50% 28%, #4ee07a 0%, #25D366 55%, #128C7E 100%);
}

.floating-contact--ig {
    background: radial-gradient(circle at 50% 28%, #ffd36e 0%, #f09433 30%, #dc2743 65%, #bc1888 100%);
}

.floating-contact--tt {
    background: radial-gradient(circle at 50% 28%, #555 0%, #1a1a1a 55%, #000 100%);
}

.floating-contact--call {
    background: radial-gradient(circle at 50% 28%, #66b3ff 0%, #005ce6 55%, #0047b3 100%);
}

.floating-contact:nth-child(2) {
    animation-delay: 0.4s;
}

.floating-contact:nth-child(3) {
    animation-delay: 0.8s;
}

.floating-contact:nth-child(4) {
    animation-delay: 1.2s;
}

@keyframes floating-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* تنسيق محتوى المقالات */
.post-content {
    font-size: 1.125rem;
    line-height: 1.95;
    color: #334155;
}

.post-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 2.2rem 0 0.9rem;
    font-family: var(--font-heading);
    line-height: 1.4;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 1.8rem 0 0.7rem;
    font-family: var(--font-heading);
}

.post-content p {
    margin-bottom: 1.1rem;
}

.post-content ul {
    list-style: disc;
    padding-inline-start: 1.6rem;
    margin-bottom: 1.1rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.post-content strong {
    color: #0f172a;
    font-weight: 700;
}