/* ===============================
   Envelope Animation
================================ */

.envelope-stage {
    animation: popBounceFlip 2.1s cubic-bezier(.25, .8, .25, 1) forwards;
}

.envelope {
    position: relative;
    width: 150px;
    height: 100px;
    transform-style: preserve-3d;
}

.env-back {
    position: absolute;
    inset: 0;
    background: #F96100;
    border-radius: 1rem;
}

.env-flap {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 55%;
    background: #FF8C00;
    clip-path: polygon(0 0, 50% 75%, 100% 0);
}

.env-paper {
    position: absolute;
    inset: 12px;
    background: white;
    border-radius: 0.5rem;
}

/* Arrow reveal timing */
.arrow-reveal {
    animation: arrowFade 0.8s ease forwards;
    animation-delay: 2.1s;
}

/* ===============================
   Keyframes
================================ */

@keyframes popBounceFlip {
    0% {
        transform: translateY(80px) scale(0.6) rotateX(0deg);
        opacity: 0;
    }

    30% {
        transform: translateY(-25px) scale(1.05);
        opacity: 1;
    }

    55% {
        transform: translateY(12px) scale(0.98);
    }

    75% {
        transform: translateY(0) rotateX(360deg);
    }

    100% {
        transform: translateY(0) rotateX(360deg);
    }
}

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

/* ===============================
   Reduced Motion Accessibility
================================ */
@media (prefers-reduced-motion: reduce) {
    .envelope-stage,
    .arrow-reveal,
    .animate-bounce {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ===============================
   Micro Feedback (Silent)
================================ */
.group:active .envelope {
    transform: scale(0.96);
    box-shadow: 0 0 0 6px rgba(249, 97, 0, 0.15);
    transition: all 120ms ease;
}

/* ===============================
   Click Ripple Effect
================================ */
.group {
    position: relative;
    overflow: hidden;
}

.group::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
            rgba(249, 97, 0, 0.25) 10%,
            transparent 11%);
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.group:active::after {
    opacity: 1;
    transform: scale(3);
    transition: transform 0.6s ease, opacity 0.6s ease;
}
/* ===============================
   Section Refinement
================================ */
.fade-up {
    position: relative;
}

.fade-up::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(249, 97, 0, 0.6),
        transparent
    );
}
/* ===============================
   Contact Info Polish
================================ */
.contact-info-item {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.contact-info-item:hover {
    background: rgba(249, 97, 0, 0.04);
    transform: translateX(4px);
}

.contact-info-item i {
    flex-shrink: 0;
}
/* ===============================
   Contact Action Card
================================ */
.envelope-stage {
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.15));
}

.group:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(249, 97, 0, 0.25),
        0 25px 60px rgba(0, 0, 0, 0.2);
    border-radius: 2rem;
}
/* ===============================
   Background Softening
================================ */
section > .bg-gradient-to-b {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f8fafc 45%,
        transparent 100%
    );
}
/* ===============================
   Map Presentation
================================ */
iframe {
    filter: saturate(0.95) contrast(1.05);
}

section iframe:hover {
    filter: saturate(1) contrast(1.1);
    transition: filter 0.6s ease;
}
















html {
    scroll-behavior: smooth;
}

/* Fade / Reveal */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-map {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s ease;
}

.reveal-map.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Premium Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4169E1;
    box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.15);
}

button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(249, 97, 0, 0.3);
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #334155;
    transition: background 0.2s ease;
}

.lang-item:hover {
    background: rgba(249, 97, 0, 0.08);
}