/* Home: interactive service cards */
.services-glass-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 48%, #ecfeff 100%);
}

.services-glass-section::before,
.services-glass-section::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .38;
    pointer-events: none;
}

.services-glass-section::before {
    background: #536dfe;
    left: -100px;
    top: -90px;
}

.services-glass-section::after {
    background: #e21e80;
    right: -100px;
    bottom: -100px;
}

.service-glass-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    min-height: 300px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, .95), transparent 34%),
        rgba(255, 255, 255, .52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(30, 48, 243, .09);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    transform-style: preserve-3d;
}

.service-glass-card:hover,
.service-glass-card.is-active {
    border-color: rgba(30, 48, 243, .25);
    box-shadow: 0 25px 55px rgba(30, 48, 243, .18);
}

.service-glass-card .card-body {
    position: relative;
    z-index: 1;
    transform: translateZ(24px);
}

.service-glass-card .service-number {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: rgba(30, 48, 243, .12);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.service-glass-card .icon-container {
    width: 68px;
    height: 68px;
    font-size: 1.75rem;
    box-shadow: 0 12px 24px rgba(30, 48, 243, .22);
    transition: transform .25s ease;
}

.service-glass-card:hover .icon-container,
.service-glass-card.is-active .icon-container {
    transform: rotate(-6deg) scale(1.08);
}

.service-glass-card .service-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #1e30f3;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}

.service-glass-card:hover .service-arrow,
.service-glass-card.is-active .service-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* Resume: glass profile and QR views */
.resume-hero {
    min-height: 70vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #1e30f3 100%);
}

.resume-hero::before,
.resume-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .45;
}

.resume-hero::before {
    width: 280px;
    height: 280px;
    top: -60px;
    left: -40px;
    background: #ff6bcb;
}

.resume-hero::after {
    width: 320px;
    height: 320px;
    right: -60px;
    bottom: -80px;
    background: #43e8ff;
}

.resume-glass-card {
    width: min(100%, 380px);
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 1;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 2rem;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .18);
}

.resume-view-switcher {
    position: relative;
    z-index: 2;
    display: flex;
    gap: .75rem;
    padding: .45rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.resume-view-btn {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .75);
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 1.35rem;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.resume-view-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.resume-view-btn.active {
    color: #1e30f3;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.resume-card-panel {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: resume-panel-in .35s ease;
}

.resume-card-panel.active {
    display: flex;
}

@keyframes resume-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.telegram-qr-frame {
    width: 210px;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.telegram-qr-frame img {
    width: 100%;
    height: 100%;
    border-radius: .8rem;
}

.telegram-empty-state {
    width: 210px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border: 1px dashed rgba(255, 255, 255, .55);
    border-radius: 1.4rem;
    background: rgba(255, 255, 255, .16);
}

.resume-glass-card .profile-avatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .65);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.resume-glass-card .profile-avatar-placeholder {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 3rem;
}

.resume-download-btn {
    color: #1e30f3;
    border: 0;
    background: rgba(255, 255, 255, .92);
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.resume-download-btn:hover {
    color: #1e30f3;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
}

.resume-social-links a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 1.15rem;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.resume-social-links a:hover {
    color: #fff;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, .35);
}

/* Shared page-only utilities */
.page-intro {
    max-width: 680px;
}

.page-intro-narrow {
    max-width: 650px;
}

.contact-message-input {
    height: 10rem !important;
}

@media (prefers-reduced-motion: reduce) {
    .service-glass-card {
        transform: none !important;
    }
}
