/* Animated Contact Cards */
.contact-container {
    display: flex;
    align-items: stretch !important;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.animated-card {
    position: relative;
    background: #333;
    width: 300px;
    min-height: 400px;
    border-radius: 10px;
    padding: 2rem;
    color: #aaa;
    box-shadow: 0 .25rem .25rem rgba(0, 0, 0, 0.2),
        0 0 1rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.animated-card__image-container {
    margin: -2rem -2rem 1rem -2rem;
    height: 150px;
}

.animated-card__line {
    opacity: 0;
    animation: LineFadeIn .8s .8s forwards ease-in;
}

.animated-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(128, 203, 196, 0.1);
    border-radius: 50%;
    color: var(--accent-color);
}

.animated-card__image {
    opacity: 0;
    animation: ImageFadeIn .8s 1.4s forwards;
}

.animated-card__title {
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.animated-card__content {
    margin-top: 1rem;
    opacity: 0;
    animation: ContentFadeIn .8s 1.6s forwards;
}

.animated-card__content p {
    margin: 0.5rem 0;
}

.animated-card__content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.animated-card__content a:hover {
    text-decoration: underline;
}

.animated-card__description {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem !important;
}

.animated-card__svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 150px;
}

/* Light Mode Adjustments */
body:not(.dark-mode) .animated-card {
    background: #f5f5f7;
    color: #666;
}

body:not(.dark-mode) .animated-card__title {
    color: #1a1a1a;
}

body:not(.dark-mode) .animated-card__description {
    color: #666;
}

body:not(.dark-mode) .animated-card__icon {
    background: rgba(0, 77, 64, 0.1);
    color: #004d40;
}

/* Animations */
@keyframes LineFadeIn {
    0% {
        opacity: 0;
        d: path("M 0 300 Q 0 300 0 300 Q 0 300 0 300 C 0 300 0 300 0 300 Q 0 300 0 300 ");
        stroke: #fff;
    }

    50% {
        opacity: 1;
        d: path("M 0 300 Q 50 300 100 300 Q 250 300 350 300 C 350 300 500 300 650 300 Q 750 300 800 300");
        stroke: #888BFF;
    }

    100% {
        opacity: 1;
        d: path("M -2 100 Q 50 200 100 250 Q 250 400 350 300 C 400 250 550 150 650 300 Q 750 450 802 400");
        stroke: #545581;
    }
}

@keyframes ContentFadeIn {
    0% {
        transform: translateY(-1rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ImageFadeIn {
    0% {
        transform: translate(-.5rem, -.5rem) scale(1.05);
        opacity: 0;
        filter: blur(2px);
    }

    50% {
        opacity: 1;
        filter: blur(2px);
    }

    100% {
        transform: translateY(0) scale(1.0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .animated-card {
        width: 100%;
        max-width: 350px;
    }
}