/* ===============================
   Contact Information
================================ */

.contact-info {
    padding: 3rem 2.5rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    animation: contactFadeUp 0.8s ease both;
}

/* ===============================
   Main Heading
================================ */

.contact-info h2 {
    font-size: clamp(26px, 3.5vw, 34px);
    font-weight: 800;
    margin-bottom: 2.4rem;
    color: #0f172a;
    position: relative;
    padding-left: 18px;
}

/* accent bar */
.contact-info h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 6px;
    height: 60%;
    border-radius: 999px;
    background: linear-gradient(180deg, #2563eb, #38bdf8);
}

/* ===============================
   Info Item
================================ */

.info-item {
    margin-bottom: 2rem;
    animation: itemFadeUp 0.8s ease both;
}

.info-item:last-child {
    margin-bottom: 0;
}

/* ===============================
   Sub Headings
================================ */

.info-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #1e293b;
    letter-spacing: 0.3px;
}

/* ===============================
   Paragraphs & Links
================================ */

.info-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 0.4rem;
}

.info-item p a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

/* underline animation */
.info-item p a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transition: width 0.3s ease;
}

.info-item p a:hover {
    color: #1d4ed8;
}

.info-item p a:hover::after {
    width: 100%;
}

/* ===============================
   Social Links
================================ */

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0.6rem;
}

.social-link {
    position: relative;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* hover */
.social-link:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.45);
}

/* glow ring */
.social-link::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.35),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover::after {
    opacity: 1;
}

/* ===============================
   Animations
================================ */

@keyframes contactFadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes itemFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   Responsive
================================ */

@media (max-width: 640px) {
    .contact-info {
        padding: 2.2rem 1.8rem;
    }

    .social-link {
        padding: 8px 16px;
        font-size: 13px;
    }
}
