/* ═══════════════════════════════════════════════════
   Contacts Page — Web3 Redesign
   ═══════════════════════════════════════════════════ */

/* ── Hero (glassy wrapper) ─────────────────────── */

.ct-hero {
    position: relative;
    padding: 80px 0 48px;
    text-align: center;
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(
            ellipse 60% 50% at 20% 30%,
            rgba(74, 144, 232, 0.1) 0%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 50% 50% at 80% 40%,
            rgba(155, 109, 215, 0.08) 0%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 45% 40% at 50% 90%,
            rgba(52, 199, 89, 0.06) 0%,
            transparent 100%
        ),
        linear-gradient(
            135deg,
            rgba(20, 20, 24, 0.65) 0%,
            rgba(28, 28, 36, 0.5) 50%,
            rgba(20, 20, 24, 0.65) 100%
        );
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ct-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(74, 144, 232, 0.3) 20%,
        rgba(155, 109, 215, 0.35) 50%,
        rgba(74, 144, 232, 0.3) 80%,
        transparent 100%
    );
}

/* Floating orbs */
.ct-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.15;
}
.ct-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4d9aff 0%, transparent 70%);
    top: -150px;
    right: 5%;
    animation: ct-float-1 12s ease-in-out infinite;
}
.ct-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #9b6dd7 0%, transparent 70%);
    top: 40%;
    left: -8%;
    animation: ct-float-2 10s ease-in-out infinite;
}
.ct-orb--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #34d769 0%, transparent 70%);
    bottom: -100px;
    right: 20%;
    animation: ct-float-3 14s ease-in-out infinite;
}

@keyframes ct-float-1 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-30px, 25px);
    }
}
@keyframes ct-float-2 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(25px, -20px);
    }
}
@keyframes ct-float-3 {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-15px, -30px);
    }
}

.ct-hero__inner {
    position: relative;
    z-index: 1;
}

/* Badge */
.ct-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    color: #7dbdff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    box-shadow:
        0 0 24px rgba(77, 154, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 16px rgba(77, 154, 255, 0.4);
}
.ct-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.08) 30%,
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.03) 30%,
            transparent 55%
        );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.ct-badge .material-symbols-rounded {
    font-size: 20px;
}

/* Title */
.ct-hero__title {
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
}
.ct-hero__accent {
    background: linear-gradient(
        135deg,
        #4d9aff 0%,
        #6db8ff 30%,
        #8dcfff 60%,
        #a8e0ff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(77, 154, 255, 0.4))
        drop-shadow(0 0 40px rgba(77, 154, 255, 0.15));
}
.ct-hero__subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Main: two-column grid ─────────────────────── */

.ct-main {
    padding: 80px 0 120px;
}

.ct-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Left: profile ─────────────────────────────── */

.ct-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    position: sticky;
    top: 120px;
}

/* Photo — just a round image with animated colorful border */
@property --ct-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.ct-photo-frame {
    width: 240px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from var(--ct-angle),
        #4d9aff,
        #9b6dd7,
        #f5a623,
        #34d769,
        #4d9aff
    );
    animation: ct-spin 4s linear infinite;
    box-shadow:
        0 0 40px 12px rgba(77, 154, 255, 0.1),
        0 0 80px 24px rgba(155, 109, 215, 0.06);
    transition: box-shadow 0.4s ease;
}
.ct-photo-frame:hover {
    box-shadow:
        0 0 60px 20px rgba(77, 154, 255, 0.15),
        0 0 120px 40px rgba(155, 109, 215, 0.1);
}
@keyframes ct-spin {
    to {
        --ct-angle: 360deg;
    }
}

.ct-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    background: #1a1a2e;
}

.ct-profile__name {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: #fff;
}

.ct-profile__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(77, 154, 255, 0.12);
    border: 1px solid rgba(77, 154, 255, 0.2);
    color: #7dbdff;
}

/* Personal email button — hero_cta-secondary style */
.ct-profile__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 18px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    text-decoration: none;
    margin-top: 4px;
    color: var(--typograph-black);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 1px 1px 6px rgba(255, 255, 255, 0.07),
        inset -1px -1px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}
/* Diagonal glare border */
.ct-profile__email::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.08) 30%,
            transparent 55%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.03) 30%,
            transparent 55%
        );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.ct-profile__email:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 1px 1px 8px rgba(255, 255, 255, 0.09),
        inset -1px -1px 8px rgba(0, 0, 0, 0.1);
}
.ct-profile__email .material-symbols-rounded {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
}
.ct-profile__email.ct-copied {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(20, 194, 79, 0.15);
}

/* ── Right: cards ──────────────────────────────── */

.ct-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Email card — exact eb__item style from dark theme */
.ct-email-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    background:
        radial-gradient(
            ellipse 80% 60% at 50% 100%,
            rgba(245, 166, 35, 0.05) 0%,
            transparent 100%
        ),
        #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.14);
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.ct-email-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 20px -5px rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Email icon — colored square with glare */
.ct-email-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #4a90e8;
    box-shadow: 0 4px 14px rgba(74, 144, 232, 0.4);
    position: relative;
    overflow: hidden;
}
.ct-email-card__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(
            ellipse 70% 70% at 15% 15%,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.08) 30%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 55% 55% at 85% 85%,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.02) 35%,
            transparent 55%
        );
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.35),
        inset -1px -1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: none;
}
.ct-email-card__icon .material-symbols-rounded {
    font-size: 26px;
    color: #fff;
}
.ct-email-card__icon--green {
    background: #14c24f;
    box-shadow: 0 4px 14px rgba(20, 194, 79, 0.4);
}

.ct-email-card__body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}
.ct-email-card__label {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.3;
    color: #fff;
}
.ct-email-card__address {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.45);
}
.ct-email-card__status {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ct-email-card__arrow {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.25s ease;
}
.ct-email-card:hover .ct-email-card__arrow {
    color: rgba(255, 255, 255, 0.6);
}

/* Copied tooltip on email cards */
.ct-email-card__tooltip {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(20, 194, 79, 0.9);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s;
}
.ct-email-card.ct-copied .ct-email-card__tooltip {
    opacity: 1;
    visibility: visible;
}

/* Copied tooltip on personal email */
.ct-profile__email-tooltip {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(20, 194, 79, 0.9);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s;
}
.ct-profile__email.ct-copied .ct-profile__email-tooltip {
    opacity: 1;
    visibility: visible;
}
.ct-profile__email {
    position: relative;
}

/* Unified copy toast (prevents clipping/stacking in table cards) */
.ct-copy-toast {
    --ct-toast-border: rgba(135, 186, 255, 0.78);
    --ct-toast-base: rgba(31, 39, 58, 0.94);
    --ct-toast-tail-border: rgba(135, 186, 255, 0.78);
    --ct-toast-tip-fill: rgb(28, 36, 55);
    --ct-toast-bg:
        radial-gradient(
            circle at 50% 0%,
            rgba(122, 181, 255, 0.18) 0%,
            rgba(122, 181, 255, 0) 58%
        ),
        linear-gradient(
            180deg,
            rgba(43, 60, 91, 0.96) 0%,
            rgba(28, 36, 55, 0.96) 100%
        );
    --ct-tail-x: 50%;
    --ct-tail-width: 24px;
    --ct-tail-height: 15px;
    --ct-tail-border: 2px;
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translate(-50%, calc(-100% - 14px)) scale(0.96);
    z-index: 1200;
    padding: 12px 20px;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    letter-spacing: 0;
    text-shadow: none;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    max-width: 240px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    isolation: isolate;
    overflow: visible;
    transition:
        opacity 0.18s ease,
        transform 0.22s ease,
        visibility 0.18s ease;
    background: var(--ct-toast-bg), var(--ct-toast-base);
    border: 1px solid var(--ct-toast-border);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(77, 154, 255, 0.12);
}

.ct-copy-toast__label {
    position: relative;
    z-index: 2;
    display: block;
}

.ct-copy-toast__arrow {
    position: absolute;
    left: var(--ct-tail-x);
    top: 100%;
    width: var(--ct-tail-width);
    height: calc(var(--ct-tail-height) + var(--ct-tail-border));
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.22));
}

.ct-copy-toast__arrow-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ct-copy-toast__arrow-fill {
    fill: var(--ct-toast-tip-fill);
}

.ct-copy-toast__arrow-stroke {
    fill: none;
    stroke: var(--ct-toast-tail-border);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ct-copy-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, calc(-100% - 10px)) scale(1);
}

.ct-copy-toast.is-visible.is-below {
    transform: translate(-50%, 10px) scale(1);
}

.ct-copy-toast.is-below .ct-copy-toast__arrow {
    top: auto;
    bottom: 100%;
    transform: translateX(-50%) rotate(180deg);
}

/* ── Details card ──────────────────────────────── */

.ct-details {
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse 60% 50% at 10% 90%,
            rgba(20, 194, 79, 0.04) 0%,
            transparent 100%
        ),
        radial-gradient(
            ellipse 50% 60% at 90% 10%,
            rgba(74, 144, 232, 0.04) 0%,
            transparent 100%
        ),
        rgba(20, 20, 24, 0.7);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
}

/* Header — comparison table style */
.ct-details__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(245, 166, 35, 0.06) 100%),
        #1e1e1e;
    border-bottom: 2px solid rgba(255, 255, 255, 0.14);
}
.ct-details__title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.88);
}

.ct-details__dl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}
.ct-details__dl:hover {
    background: rgba(245, 166, 35, 0.12);
    color: #f5c161;
}
.ct-details__dl .material-symbols-rounded {
    font-size: 22px;
}

/* Details list — edge-to-edge hover rows */
.contacts__details-list {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.contacts__details-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 16px 28px;
    width: 100%;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.contacts__details-list li:last-child {
    border-bottom: none;
}
.contacts__details-list li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.contacts__details-list li span.descript {
    width: 120px;
    flex-shrink: 0;
    padding: 2px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    font-weight: 500;
}

.contacts__value {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    line-height: 156%;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    position: relative;
}
.copy-btn img {
    filter: invert(1) opacity(0.4);
}
.contacts__details-list li:hover .copy-btn {
    opacity: 1;
}
.contacts__details-list li:hover .copy-btn img {
    filter: invert(1) opacity(0.7);
}

.contacts_tootip {
    position: absolute;
    top: -54px;
    border-radius: 12px;
    white-space: nowrap;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(20, 194, 79, 0.9);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s;
}
.copy-btn.copied .copy-btn-tooltip {
    opacity: 1;
    visibility: visible;
}
.copy-btn-tooltip {
    width: fit-content;
}

/* Mobile overrides */
@media (max-width: 768px) {
    .ct-hero__title {
        white-space: normal;
        font-size: 28px;
    }
    .ct-hero {
        padding: 48px 20px 32px;
        margin: 24px 16px 0;
    }
    .ct-main {
        padding: 32px 0 80px;
    }
    .ct-main .container {
        overflow: hidden;
    }
    .ct-photo-frame {
        width: 160px;
    }
    .ct-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ct-profile {
        position: static;
    }
    .ct-profile__email {
        font-size: 14px;
        padding: 10px 14px;
    }
    .ct-email-card {
        padding: 14px 16px;
        gap: 12px;
    }
    .ct-email-card__icon {
        width: 44px;
        height: 44px;
    }
    .ct-email-card__icon .material-symbols-rounded {
        font-size: 22px;
    }
    .ct-email-card__label {
        font-size: 16px;
    }
    .ct-email-card__address {
        font-size: 14px;
        overflow-wrap: break-word;
        word-break: break-all;
    }
    .ct-copy-toast {
        display: none !important;
    }
    .ct-details {
        border-radius: 16px;
    }
    .contacts__details-list li {
        padding: 12px 16px;
    }
    .contacts__value {
        font-size: 16px;
    }
    .contacts__value p {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* Disable legacy local tooltips on redesigned contacts page */
.ct-main .ct-email-card__tooltip,
.ct-main .ct-profile__email-tooltip,
.ct-main .copy-btn-tooltip {
    display: none !important;
}
