/* CONTACT SECTION - Responsive & Scaled for Mobile */
.contact-section {
    background: pink;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Heading & Subtitle */
.contact-heading {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #111;
}

.contact-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: #666;
    font-weight: normal;
    margin-top: 0.3rem;
}

/* Contact Container */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
}

/* Contact Item Card */
.contact-item {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 1rem;
    flex: 1 1 240px;
    min-width: 200px;
    max-width: 280px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    overflow: hidden;
}

/* Shine Effect */
.contact-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s;
}

.contact-item:hover::before {
    animation: shineSweep 1.2s ease-in-out;
    opacity: 1;
}

@keyframes shineSweep {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* Glow Effect */
.contact-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(255, 0, 128, 0.25),
        0 0 25px rgba(255, 0, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Keep content above shine layer */
.contact-item * {
    position: relative;
    z-index: 2;
}

/* Icon Styling */
.contact-icon {
    font-size: 2rem;
    color: #d90429;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px rgba(217, 4, 41, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
    color: #8d021f;
    text-shadow: 0 0 12px rgba(217, 4, 41, 0.7);
}

/* Text Styling */
.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.4rem 0 0.3rem;
    color: #111;
}

.contact-item p {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.3;
    margin: 0;
}

.contact-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .contact-item {
        width: 100%;
        max-width: 90%;
        padding: 1rem;
        height: auto; /* Allow content-based height */
        min-height: 100px;
        max-height: 140px;
    }

    .contact-icon {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .contact-item h4 {
        font-size: 1rem;
        margin: 0.3rem 0;
    }

    .contact-item p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Add delay per item using nth-child */
.contact-item:nth-child(2) {
    animation-delay: 0.4s;
}
.contact-item:nth-child(3) {
    animation-delay: 0.5s;
}
.contact-item:nth-child(4) {
    animation-delay: 0.6s;
}
.contact-item:nth-child(5) {
    animation-delay: 0.7s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Center icon + heading at the top */
.phone-item .phone-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.6rem;
}

.phone-item h4 {
    margin: 0.3rem 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Phone numbers centered below */
.phone-numbers {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.phone-numbers a {
    color: #d90429;
    font-weight: 500;
    text-decoration: none;
}
