/* ==========================================
   CONTACT PAGE SPECIFIC STYLES
   Apple × Linear × Vercel Premium Aesthetic
   ========================================== */

@import url("../global.css");

/* ------------------------------------------
   1. HERO SECTION
   ------------------------------------------ */
.contact-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Subtle ambient background glow */
.contact-hero::before {
    content: "";
    position: absolute;
    top: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 650px;
    height: 400px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.03) 45%, transparent 75%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.contact-hero .section-label {
    display: inline-block;
    color: var(--color-accent);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    font-weight: var(--fw-regular);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-hero .section-title {
    font-size: clamp(3.2rem, 7vw, 5rem);
}

.contact-hero .section-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* ------------------------------------------
   2. PROFILE CARD & CONTACT INFO CARDS
   ------------------------------------------ */
.contact-profile-section {
    position: relative;
    padding: 0 0 var(--space-3xl);
    z-index: 1;
}

.contact-grid-2col {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

@media (min-width: 992px) {
    .contact-grid-2col {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: var(--space-2xl);
        align-items: stretch;
    }

    .contact-info-column {
        height: 440px;
        justify-content: space-between;
    }

    .contact-info-column .card.info-card {
        flex: 1 1 0%;
    }
}

/* Left Column: Developer Profile Card */
.profile-card-wrapper {
    width: 100%;
    position: relative;
}

.card.profile-card {
    position: relative;
    width: 440px;
    max-width: 100%;
    height: 440px;
    background: var(--color-surface);
    border: 1px solid var(--border-primary);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 
        var(--shadow-lg), 
        0 24px 60px -12px rgba(0, 0, 0, 0.5);
    transition: 
        transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
        border-color 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
        box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card.profile-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 
        0 30px 70px -15px rgba(0, 0, 0, 0.65), 
        0 0 45px -10px rgba(220, 38, 38, 0.25);
}

/* Floating Mail Icon Button */
.card.profile-card .mail {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 25;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: 
        transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), 
        background 0.3s ease, 
        border-color 0.3s ease, 
        color 0.3s ease, 
        box-shadow 0.3s ease;
}

.card.profile-card .mail svg,
.card.profile-card .social-link svg {
    color: currentColor;
    transition: color 0.3s ease, transform 0.25s ease;
}

.card.profile-card .mail:hover {
    transform: scale(1.1) rotate(6deg);
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.45);
}

/* Profile Picture Container (Circular Transformation on Hover) */
.card.profile-card .profile-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    z-index: 1;
    border: 3px solid transparent;
    transition: 
        top 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        left 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        width 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        height 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        border-radius 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        border-color 0.4s ease,
        box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card.profile-card:hover .profile-pic {
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border-color: var(--color-accent);
    box-shadow: 0 14px 32px -6px rgba(220, 38, 38, 0.45);
    z-index: 15;
}

.card.profile-card .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card.profile-card:hover .profile-img {
    transform: scale(1.14);
}

/* Expanding Bottom Panel */
.card.profile-card .bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 96px;
    background: rgba(13, 13, 20, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--border-primary);
    padding: 20px 28px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: 
        height 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card.profile-card:hover .bottom {
    height: 265px;
    padding: 22px 28px 24px;
    background: rgba(13, 13, 20, 0.94);
    border-top-color: rgba(220, 38, 38, 0.35);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

/* Profile Content Text */
.card.profile-card .content {
    display: flex;
    flex-direction: column;
}

.card.profile-card .name {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: var(--fw-regular);
    color: var(--color-text);
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.card.profile-card .role-title {
    font-size: 0.9rem;
    font-weight: var(--fw-medium);
    color: var(--color-accent);
}

/* Information List inside Expanding Panel */
.card.profile-card .info-list {
    opacity: 0;
    transform: translateY(12px);
    max-height: 0;
    margin-top: 0;
    pointer-events: none;
    transition: 
        opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        max-height 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        margin-top 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.card.profile-card:hover .info-list {
    opacity: 1;
    transform: translateY(0);
    max-height: 140px;
    margin-top: 14px;
    pointer-events: auto;
    transition-delay: 0.08s;
}

.card.profile-card .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.card.profile-card .info-label {
    color: var(--color-text-tertiary);
    font-weight: var(--fw-medium);
}

.card.profile-card .info-val {
    color: var(--color-text-primary);
    font-weight: var(--fw-medium);
}

/* Bottom Footer (Socials & Contact Me Button) */
.card.profile-card .bottom-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    margin-top: auto;
    padding-top: 12px;
    transition: 
        opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.card.profile-card:hover .bottom-bottom {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.14s;
}

.card.profile-card .social-links-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.card.profile-card .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: 
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.card.profile-card .social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.card.profile-card .contact-me-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 999rem;
    background: var(--color-accent);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
    transition: 
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.card.profile-card .contact-me-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.55);
}

/* Light Mode Overrides for Interactive Profile Card */
[data-theme="light"] .card.profile-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .card.profile-card .bottom {
    background: rgba(255, 255, 255, 0.9);
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card.profile-card:hover .bottom {
    background: rgba(255, 255, 255, 0.96);
    border-top-color: rgba(220, 38, 38, 0.25);
}

[data-theme="light"] .card.profile-card .info-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card.profile-card .mail,
[data-theme="light"] .card.profile-card .social-link {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--color-text-primary);
}

/* ------------------------------------------
   2.1 Right Column: Contact Info Cards
   ------------------------------------------ */
.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    width: 100%;
}

.card.info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.65rem;
    background: var(--color-surface);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
    transition: 
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
        border-color 0.3s ease, 
        box-shadow 0.3s ease;
}

.card.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 
        0 15px 35px -10px rgba(0, 0, 0, 0.45), 
        0 0 25px -8px rgba(220, 38, 38, 0.2);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    flex-shrink: 0;
}

.info-card-icon i,
.info-card-icon svg {
    width: 22px;
    height: 22px;
    color: currentColor;
    transition: color 0.3s ease, transform 0.25s ease;
}

.social-svg-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    color: currentColor;
    transition: color 0.3s ease, transform 0.25s ease;
}

.info-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.info-card-label {
    font-size: 0.76rem;
    font-weight: var(--fw-bold);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.15rem;
}

.info-card-value {
    font-size: 1.02rem;
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

a.info-card-value:hover {
    color: var(--color-accent);
}

.info-card-sub {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    margin-top: 0.15rem;
}

.btn-copy-email {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-primary);
    color: var(--color-text-secondary);
    font-size: 0.78rem;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: 
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
        background 0.3s ease, 
        border-color 0.3s ease, 
        color 0.3s ease;
}

.btn-copy-email i,
.btn-copy-email svg {
    width: 14px;
    height: 14px;
}

.btn-copy-email:hover {
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(220, 38, 38, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-copy-email.copied {
    background: rgba(39, 201, 63, 0.15);
    border-color: rgba(39, 201, 63, 0.5);
    color: #27c93f;
}

.info-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999rem;
    background: rgba(39, 201, 63, 0.12);
    border: 1px solid rgba(39, 201, 63, 0.35);
    color: #27c93f;
    font-size: 0.74rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
}

.btn-info-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-primary);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: 
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
        background 0.3s ease, 
        border-color 0.3s ease, 
        color 0.3s ease;
}

.btn-info-action:hover {
    transform: scale(1.08);
    background: rgba(220, 38, 38, 0.18);
    border-color: rgba(220, 38, 38, 0.6);
    color: #ffffff !important;
}

.btn-info-action i,
.btn-info-action svg {
    width: 16px;
    height: 16px;
}

/* ------------------------------------------
   3. QUICK CONTACT BUTTONS SECTION
   ------------------------------------------ */
.quick-contact-section {
    position: relative;
    padding: var(--space-xl) 0 var(--space-3xl);
    z-index: 1;
}

.quick-contact-section .section-heading-center {
    margin-bottom: 3.5rem;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.quick-btn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.45rem;
    border-radius: 18px;
    background: var(--color-surface);
    border: 1px solid var(--border-primary);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--fw-semibold);
    font-size: 0.98rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: 
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
        background 0.3s ease, 
        border-color 0.3s ease, 
        color 0.3s ease, 
        box-shadow 0.3s ease;
}

.quick-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: 
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
        background 0.3s ease, 
        border-color 0.3s ease,
        color 0.3s ease;
}

.quick-btn-icon i,
.quick-btn-icon svg {
    color: currentColor;
    transition: color 0.3s ease, transform 0.25s ease;
}

.quick-btn-name {
    flex: 1;
    margin-left: 0.85rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.quick-btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-btn-arrow i,
.quick-btn-arrow svg {
    width: 18px;
    height: 18px;
}

.quick-btn-item:hover {
    transform: translateY(-5px) scale(1.015);
}

.quick-btn-item:hover .quick-btn-icon {
    transform: scale(1.1);
}

.quick-btn-item:hover .quick-btn-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
}

/* 1. GitHub (#24292F) */
.quick-btn-item[data-social="github"]:hover {
    background: rgba(36, 41, 47, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 18px 36px -12px rgba(0, 0, 0, 0.65), 
        0 0 26px -6px rgba(255, 255, 255, 0.25);
}
/* 1. GitHub (#24292F) */
.quick-btn-item[data-social="github"]:hover {
    background: #24292F;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 18px 36px -12px rgba(0, 0, 0, 0.7), 
        0 0 26px -6px rgba(255, 255, 255, 0.25);
}
.quick-btn-item[data-social="github"]:hover .quick-btn-icon {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff !important;
}
.quick-btn-item[data-social="github"]:hover .quick-btn-name,
.quick-btn-item[data-social="github"]:hover .quick-btn-arrow {
    color: #ffffff;
}

/* 2. Facebook (#1877F2) */
.quick-btn-item[data-social="facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 18px 36px -12px rgba(0, 0, 0, 0.6), 
        0 0 28px -6px rgba(24, 119, 242, 0.5);
}
.quick-btn-item[data-social="facebook"]:hover .quick-btn-icon {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}
.quick-btn-item[data-social="facebook"]:hover .quick-btn-name,
.quick-btn-item[data-social="facebook"]:hover .quick-btn-arrow {
    color: #ffffff;
}

/* 3. Instagram (Instagram gradient) */
.quick-btn-item[data-social="instagram"]:hover {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-color: #e1306c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 18px 36px -12px rgba(0, 0, 0, 0.6), 
        0 0 28px -6px rgba(228, 64, 93, 0.5);
}
.quick-btn-item[data-social="instagram"]:hover .quick-btn-icon {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}
.quick-btn-item[data-social="instagram"]:hover .quick-btn-name,
.quick-btn-item[data-social="instagram"]:hover .quick-btn-arrow {
    color: #ffffff;
}

/* 4. Telegram (#229ED9) */
.quick-btn-item[data-social="telegram"]:hover {
    background: #229ED9;
    border-color: #229ED9;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 18px 36px -12px rgba(0, 0, 0, 0.6), 
        0 0 28px -6px rgba(34, 158, 217, 0.5);
}
.quick-btn-item[data-social="telegram"]:hover .quick-btn-icon {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}
.quick-btn-item[data-social="telegram"]:hover .quick-btn-name,
.quick-btn-item[data-social="telegram"]:hover .quick-btn-arrow {
    color: #ffffff;
}

/* 5. TikTok (#000000 with 2-color combined cyan #25F4EE & pink #FE2C55 glitch effect) */
.quick-btn-item[data-social="tiktok"]:hover {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 18px 36px -12px rgba(0, 0, 0, 0.9), 
        -4px 0 18px rgba(37, 244, 238, 0.6), 
        4px 0 18px rgba(254, 44, 85, 0.6);
}
.quick-btn-item[data-social="tiktok"]:hover .quick-btn-icon {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: -2px -2px 0px #25F4EE, 2px 2px 0px #FE2C55;
    color: #ffffff !important;
}
.quick-btn-item[data-social="tiktok"]:hover .quick-btn-icon svg,
.quick-btn-item[data-social="tiktok"]:hover .quick-btn-icon i {
    filter: drop-shadow(-2px -2px 0px #25F4EE) drop-shadow(2px 2px 0px #FE2C55);
}
.quick-btn-item[data-social="tiktok"]:hover .quick-btn-name,
.quick-btn-item[data-social="tiktok"]:hover .quick-btn-arrow {
    color: #ffffff;
    text-shadow: -2px -1px 0px #25F4EE, 2px 1px 0px #FE2C55;
}

/* 6. LinkedIn (#0A66C2) */
.quick-btn-item[data-social="linkedin"]:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 
        0 18px 36px -12px rgba(0, 0, 0, 0.6), 
        0 0 28px -6px rgba(10, 102, 194, 0.5);
}
.quick-btn-item[data-social="linkedin"]:hover .quick-btn-icon {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
}
.quick-btn-item[data-social="linkedin"]:hover .quick-btn-name,
.quick-btn-item[data-social="linkedin"]:hover .quick-btn-arrow {
    color: #ffffff;
}

/* ------------------------------------------
   4. MODERN CONTACT FORM SECTION
   ------------------------------------------ */
.contact-form-section {
    position: relative;
    padding: 0 0 var(--space-3xl);
    z-index: 1;
}

.contact-form-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.card.contact-form-card {
    background: var(--color-surface);
    border: 1px solid var(--border-primary);
    border-radius: 26px;
    padding: clamp(1.75rem, 5vw, 3rem);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 
        var(--shadow-lg), 
        0 24px 60px -12px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card.contact-form-card:hover {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 
        0 30px 70px -15px rgba(0, 0, 0, 0.6), 
        0 0 40px -12px rgba(220, 38, 38, 0.18);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.65rem;
}

@media (max-width: 640px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Floating Label Form Controls */
.form-floating-group {
    position: relative;
    width: 100%;
}

.floating-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    padding: 1.35rem 1.15rem 0.65rem;
    font-size: 0.98rem;
    color: var(--color-text);
    font-family: inherit;
    outline: none;
    transition: 
        border-color 0.3s ease, 
        background 0.3s ease, 
        box-shadow 0.3s ease;
}

.floating-textarea {
    resize: vertical;
    min-height: 140px;
}

.floating-label {
    position: absolute;
    left: 1.15rem;
    top: 1rem;
    font-size: 0.92rem;
    color: var(--color-text-tertiary);
    pointer-events: none;
    transform-origin: left top;
    transition: 
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
        color 0.25s ease, 
        font-size 0.25s ease;
}

/* Floating label trigger when input is focused or not empty */
.floating-input:focus ~ .floating-label,
.floating-input:not(:placeholder-shown) ~ .floating-label {
    transform: translateY(-0.55rem) scale(0.82);
    color: var(--color-accent);
    font-weight: var(--fw-semibold);
}

.floating-input:focus {
    border-color: var(--color-accent);
    background: rgba(220, 38, 38, 0.05);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.btn-submit-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 2.2rem;
    border-radius: 999rem;
    background: var(--color-accent);
    border: 1px solid transparent;
    color: #ffffff !important;
    font-weight: var(--fw-semibold);
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4);
    transition: 
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
        background 0.3s ease, 
        box-shadow 0.3s ease;
}

.btn-submit-message i,
.btn-submit-message svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit-message:hover {
    transform: translateY(-3px);
    background: var(--color-accent-hover, #b91c1c);
    box-shadow: 0 16px 32px -6px rgba(220, 38, 38, 0.55);
}

.btn-submit-message:hover i,
.btn-submit-message:hover svg {
    transform: translate(2px, -2px);
}

.form-feedback {
    font-size: 0.88rem;
    font-weight: var(--fw-medium);
    color: #27c93f;
    transition: opacity 0.3s ease;
}

.form-feedback.error {
    color: #ff5f56;
}

/* ------------------------------------------
   5. THANK YOU ENVELOPE SECTION
   ------------------------------------------ */
.thank-you-envelope-section {
    position: relative;
    padding: 0 0 var(--space-3xl);
    z-index: 1;
}

.thank-you-envelope-section .section-heading-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(8rem, 15vw, 11rem);
}

.envelope-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

/* ==========================================
   5. INTERACTIVE ENVELOPE CARD COMPONENT
   (Vanilla CSS Conversion of SmookyDev Envelope)
   ========================================== */
.smky-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-md) 0;
}

.smky-envelope-container {
    position: relative;
    background: #000000;
    width: clamp(320px, 86vw, 820px);
    max-width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 
        var(--shadow-lg),
        0 30px 70px -15px rgba(0, 0, 0, 0.75);
    cursor: pointer;
    overflow: visible;
}

@media (max-width: 480px) {
    .smky-envelope-container {
        width: 300px;
    }
}

/* Letter Inside */
.smky-letter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(1.5rem, 5vw, 3.25rem) clamp(1.5rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.15);
    /* DEFAULT STATE (Unhovering): slides down immediately (0s delay, 0.42s duration) */
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}

.smky-envelope-container:hover .smky-letter {
    transform: translateY(-34%);
    /* HOVER STATE: waits 0.15s for top flap to open, then slides up in 0.75s */
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.smky-letter-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 600;
    color: #4b5563;
    margin: 0 0 clamp(0.5rem, 1.5vw, 1.25rem);
    line-height: 1.15;
    letter-spacing: 1px;
}

.smky-letter-body {
    font-size: clamp(0.85rem, 1.8vw, 1.2rem);
    color: #374151;
    text-align: center;
    padding: 0 clamp(1rem, 5vw, 3.5rem);
    line-height: 1.6;
    margin: 0 0 clamp(0.35rem, 1vw, 0.75rem);
}

.smky-letter-wish {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(0.85rem, 1.8vw, 1.2rem);
    color: #374151;
    margin: 0 0 0.5rem;
}

.smky-letter-signature {
    font-family: inherit;
    font-size: clamp(0.7rem, 1.4vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #374151;
    margin-top: auto;
    padding-top: clamp(0.75rem, 2vw, 1.5rem);
    text-transform: uppercase;
}

/* Wax Seal Button */
.smky-seal {
    position: relative;
    z-index: 40;
    width: clamp(3rem, 6vw, 4.5rem);
    height: clamp(3rem, 6vw, 4.5rem);
    border-radius: 50%;
    background: #f43f5e;
    color: #881337;
    border: clamp(3px, 0.5vw, 5px) solid #881337;
    font-size: clamp(0.75rem, 1.6vw, 1.15rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0%, 80% 10%, 100% 35%, 100% 70%, 80% 90%, 50% 100%, 20% 90%, 0% 70%, 0% 35%, 20% 10%);
    cursor: pointer;
    /* DEFAULT STATE (Unhovering): waits 0.45s for letter to slide in before reappearing */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s, opacity 0.5s ease 0.45s;
}

.smky-envelope-container:hover .smky-seal {
    opacity: 0;
    transform: scale(0) rotate(180deg);
    /* HOVER STATE: spins away immediately in 0.35s */
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0s, opacity 0.35s ease 0s;
}

/* 4 Envelope Flaps using Polygon Clip Paths */
.smky-flap-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #262626;
    clip-path: polygon(50% 50%, 100% 0, 0 0);
    z-index: 30;
    /* DEFAULT STATE (Unhovering): waits 0.4s for letter to slide in before closing */
    transition: clip-path 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.smky-envelope-container:hover .smky-flap-top {
    clip-path: polygon(50% 0%, 100% 0, 0 0);
    /* HOVER STATE: opens immediately in 0.2s */
    transition: clip-path 0.2s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}

.smky-flap-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171717;
    clip-path: polygon(50% 50%, 0 0, 0 100%);
    transition: all 0.7s ease;
    z-index: 20;
}

.smky-flap-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #262626;
    clip-path: polygon(50% 50%, 100% 0, 100% 100%);
    transition: all 0.7s ease;
    z-index: 20;
}

.smky-flap-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #171717;
    clip-path: polygon(50% 50%, 100% 100%, 0 100%);
    transition: all 0.7s ease;
    z-index: 25;
}

/* ------------------------------------------
   6. RESPONSIVE MEDIA QUERIES
   ------------------------------------------ */
@media (max-width: 768px) {
    .card.profile-card,
    .card.contact-form-card {
        padding: 1.75rem 1.35rem;
        border-radius: 22px;
    }

    .form-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.9rem;
    }

    .btn-submit-message {
        width: 100%;
    }
}

/* ------------------------------------------
   7. LIGHT MODE THEME SYNCHRONIZATION
   ------------------------------------------ */
[data-theme="light"] .card.profile-card,
[data-theme="light"] .card.info-card,
[data-theme="light"] .quick-btn-item,
[data-theme="light"] .card.contact-form-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 20px 45px -10px rgba(0, 0, 0, 0.08), 
        0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card.profile-card:hover,
[data-theme="light"] .card.info-card:hover,
[data-theme="light"] .quick-btn-item:hover,
[data-theme="light"] .card.contact-form-card:hover {
    border-color: rgba(220, 38, 38, 0.35);
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.12), 
        0 0 35px -5px rgba(220, 38, 38, 0.15);
}

[data-theme="light"] .mail-btn,
[data-theme="light"] .btn-info-action,
[data-theme="light"] .quick-btn-icon,
[data-theme="light"] .info-card-icon {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-primary);
}

[data-theme="light"] .mail-btn:hover,
[data-theme="light"] .btn-info-action:hover {
    background: #d11a2a;
    border-color: #b91c1c;
    color: #ffffff !important;
}

[data-theme="light"] .info-card:hover .info-card-icon {
    background: #d11a2a;
    border-color: #b91c1c;
    color: var(--color-text-primary) !important;
}

[data-theme="light"] .profile-badge,
[data-theme="light"] .letter-badge {
    background: rgba(209, 26, 42, 0.08);
    border-color: rgba(209, 26, 42, 0.22);
    color: #d11a2a;
}

[data-theme="light"] .btn-copy-email {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-text-secondary);
}

[data-theme="light"] .btn-copy-email:hover {
    background: #d11a2a;
    border-color: #b91c1c;
    color: #ffffff;
}

[data-theme="light"] .btn-copy-email.copied {
    background: rgba(39, 201, 63, 0.12);
    border-color: rgba(39, 201, 63, 0.4);
    color: #1a9e2d;
}

[data-theme="light"] .floating-input {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-text);
}

[data-theme="light"] .floating-input:focus {
    border-color: #d11a2a;
    background: rgba(209, 26, 42, 0.04);
    box-shadow: 0 0 0 3px rgba(209, 26, 42, 0.12);
}
