/* =========================
   LAYOUT & CONTAINERS
========================= */

.contact-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* margin: 60px auto; */
    /* margin: auto 30px; */
    width: 80%;

    /* center it */
    margin: auto;
}

.contact-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 20px;
    /* Center grid on large screens */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
}


/* =========================
   GRID SYSTEM
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: stretch;
}

/* =========================
   REFINED GLASS CARDS
========================= */

.contact-card {
    background: rgba(20, 20, 28, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    
    /* Animation base */
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.contact-card.large {
    grid-row: span 2;
    justify-content: center;
    animation-delay: 0.1s;
}

/* Stagger right-side cards */
.contact-grid .contact-card:nth-child(2) { animation-delay: 0.3s; }
.contact-grid .contact-card:nth-child(3) { animation-delay: 0.5s; }

.contact-card:hover {
    transform: translateY(-3px);
    border-color: rgba(120, 80, 255, 0.25);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* =========================
   TYPOGRAPHY
========================= */

.contact-card-label {
    font-size: 0.75rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #aaa;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.contact-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 600;
}

.contact-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #fff;
    margin-bottom: 12px;
}

.contact-card p {
    color: #cfcfd6;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* =========================
   BUTTONS (SHIMMER EFFECT)
========================= */

.contact-button {
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5ff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    width: fit-content;
    transition: all 0.3s ease;
    isolation: isolate;
}

.contact-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    pointer-events: none;
    z-index: 1;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.contact-button:hover::before {
    animation: shimmer 1.2s ease forwards;
}

/* Secondary links */
.text-link {
    color: #8b6eff; /* Muted purple to match the hover glow */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s ease;
    opacity: 0.8;
}

.text-link:hover {
    opacity: 1;
    letter-spacing: 0.5px;
}

/* =========================
   CTA SECTION (BOTTOM)
========================= */

.contact-cta {
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.contact-cta h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.contact-cta p {
    color: #aaa;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(120%);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card.large {
        grid-row: auto;
    }

    .contact-main {
        padding-top: 40px;
    }
}