/* Contact Page - Card Overlap Design */

html:has(.contact-body),
html:has(.contact-body) body,
.contact-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.contact-body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

/* Background */
.contact-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../assets/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Header with Logo */
.contact-header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.contact-header .logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.contact-header .logo-link:hover {
    transform: scale(1.05);
}

.contact-header .header-logo {
    height: 140px;
    width: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

/* Main Layout - Desktop Side by Side */
.contact-main {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
    padding: 200px 40px 100px;
    gap: 40px;
}

/* Sun Container */
.sun-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-sun {
    height: 45vh;
    max-height: 350px;
    width: auto;
    object-fit: contain;
}

/* Lava Sun Styling for Contact Page */
.lava-sun-contact {
    filter:
        drop-shadow(0 0 20px rgba(255, 230, 100, 0.6))
        drop-shadow(0 0 40px rgba(255, 180, 50, 0.4))
        drop-shadow(0 0 60px rgba(255, 140, 0, 0.2));
}

.lava-sun-contact .sun-core-contact {
    transition: transform 0.3s ease-out;
}

.lava-sun-contact .lava-ray-contact {
    transition: opacity 0.2s ease-out;
}

.lava-sun-contact .sun-glow-inner-contact {
    transition: opacity 0.3s ease-out, r 0.3s ease-out;
}

.lava-sun-contact .sun-highlight-contact {
    animation: highlightShimmerContact 3s ease-in-out infinite;
}

@keyframes highlightShimmerContact {
    0%, 100% {
        opacity: 0.3;
        transform: translate(0, 0);
    }
    50% {
        opacity: 0.5;
        transform: translate(2px, -2px);
    }
}

/* Contact Container - Desktop */
.contact-container {
    width: 45vh;
    max-width: 350px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Contact Title */
.contact-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--colombia-yellow);
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    text-align: center;
}

/* Contact Text */
.contact-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.contact-text strong {
    color: var(--colombia-yellow);
    font-weight: 600;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 15px 0;
}

.contact-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 230, 100, 0.7) 0%,
        rgba(252, 209, 22, 0.5) 50%,
        rgba(230, 180, 20, 0.4) 100%);
    border: 2px solid rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

.contact-icon:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 200, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 200, 0, 0.5);
    }
}

.contact-icon svg {
    width: 26px;
    height: 26px;
}

.contact-icon:hover {
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 240, 120, 0.9) 0%,
        rgba(252, 209, 22, 0.7) 50%,
        rgba(230, 180, 20, 0.6) 100%);
    border-color: var(--colombia-yellow);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6),
                0 0 50px rgba(255, 200, 0, 0.3);
    transform: scale(1.1);
    animation-play-state: paused;
}

/* Back Home Button */
.back-home-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--colombia-yellow) 0%, #E5B800 100%);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 209, 22, 0.3);
    text-align: center;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(252, 209, 22, 0.5);
}

/* Footer */
.contact-footer {
    position: relative;
    padding: 20px;
    text-align: center;
    z-index: 10;
    color: var(--white);
    font-size: 0.75rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* ===================== */
/* Mobile - Card Overlap Layout */
/* ===================== */
@media (max-width: 900px) {
    .contact-main {
        flex-direction: column;
        align-items: center;
        padding: 160px 20px 80px;
        gap: 0; /* Remove gap for overlap */
    }

    .sun-container {
        order: 1;
        z-index: 2;
        margin-bottom: -50px; /* Overlap into contact container */
    }

    .contact-sun {
        height: auto;
        width: 180px;
        max-height: none;
    }

    .contact-container {
        order: 2;
        z-index: 1;
        width: 320px;
        max-width: 90vw;
        padding: 70px 25px 25px 25px; /* Extra top padding for overlap */
        border-radius: 16px;
    }

    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .contact-text {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .contact-icons {
        gap: 20px;
        margin: 10px 0;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .back-home-btn {
        margin-top: 15px;
    }
}

@media (max-width: 500px) {
    .contact-main {
        padding: 140px 15px 60px;
    }

    .sun-container {
        margin-bottom: -45px;
    }

    .contact-sun {
        width: 150px;
    }

    .contact-container {
        width: 280px;
        padding: 65px 20px 20px 20px;
    }

    .contact-title {
        font-size: 1.3rem;
    }

    .contact-text {
        font-size: 0.8rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .back-home-btn {
        font-size: 0.75rem;
        padding: 8px 20px;
    }

    .contact-footer {
        font-size: 0.6rem;
    }
}

@media (max-width: 375px) {
    .contact-main {
        padding: 130px 10px 50px;
    }

    .sun-container {
        margin-bottom: -40px;
    }

    .contact-sun {
        width: 130px;
    }

    .contact-container {
        width: 260px;
        padding: 55px 18px 18px 18px;
    }

    .contact-title {
        font-size: 1.2rem;
    }

    .contact-text {
        font-size: 0.75rem;
    }

    .contact-icons {
        gap: 15px;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
}
