/* ============================
           CSS Reset & Base - Minimalist Luxury
           ============================ */

@font-face {
    font-family: 'yekan-bakh';
    src: url('../fonts/YekanBakh-Regular.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'yekan-bakh';
    background-color: #0A0A0A;
    color: #F5F5F5;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ============================
   Canvas for Particle System
   ============================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

/* ============================
   Main Content Container
   ============================ */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 40px;
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* ============================
   Typography - The Art of Words
   ============================ */
.title {
    font-family: 'yekan-bakh';
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 3rem);
    letter-spacing: -1px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.15);
    animation: fadeInUp 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.subtitle {
    font-family: 'yekan-bakh';
    font-weight: 200;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    letter-spacing: 4px;
    color: #A0A0A0;
    margin-top: -1rem;
    animation: fadeInUp 1.5s 0.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    text-transform: uppercase;
}

.gold-accent {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #FFDF00, #D4AF37);
    margin: 0.5rem auto;
    border-radius: 2px;
    animation: expandLine 2s 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transform: scaleX(0);
}

/* ============================
   Contact Info - Email Masked
   ============================ */
.contact-info {
    font-family: 'yekan-bakh';
    font-weight: 400;
    font-size: 1rem;
    color: #666;
    animation: fadeInUp 1.5s 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    letter-spacing: 1px;
}

.email-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.email-pill:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.12);
}

.email-pill svg {
    width: 15px;
    height: 15px;
    stroke: #D4AF37;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.email-text {
    color: #D4AF37;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    direction: ltr;
    font-family: 'yekan-bakh', monospace;
}

.email-copy-hint {
    font-size: 0.68rem;
    color: rgba(212, 175, 55, 0.4);
    transition: color 0.3s;
    margin-right: 0.2rem;
}

.email-pill:hover .email-copy-hint {
    color: rgba(212, 175, 55, 0.85);
}

/* ============================
   Social Buttons - Luxury Glass
   ============================ */
.social-row {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    animation: fadeInUp 1.5s 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.social-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
    overflow: hidden;
    cursor: pointer;
}

/* لایه گرادیان پنهان */
.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: inherit;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.07);
    border-color: transparent;
}

/* اینستاگرام - گرادیان رسمی برند */
.social-btn.instagram::before {
    background: linear-gradient(135deg,
    #f09433 0%, #e6683c 25%,
    #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-btn.instagram:hover::before { opacity: 1; }
.social-btn.instagram:hover {
    box-shadow: 0 8px 28px rgba(220, 39, 67, 0.35);
}

/* تلگرام - آبی رسمی */
.social-btn.telegram::before {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
}
.social-btn.telegram:hover::before { opacity: 1; }
.social-btn.telegram:hover {
    box-shadow: 0 8px 28px rgba(42, 171, 238, 0.35);
}

.social-btn svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-btn:hover svg {
    transform: scale(1.12);
}

/* Tooltip فارسی */
.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: rgba(10, 10, 10, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #D4AF37;
    font-size: 0.7rem;
    font-family: 'yekan-bakh', sans-serif;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.25);
}

.social-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ============================
   Copy Toast Notification
   ============================ */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: rgba(10, 10, 10, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.35);
    backdrop-filter: blur(14px);
    color: #D4AF37;
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-family: 'yekan-bakh', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================
   Animations - The Breath of Life
   ============================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes expandLine {
    to { transform: scaleX(1); }
}

@keyframes subtlePulse {
    0%   { opacity: 0.7; text-shadow: 0 0 40px rgba(255,255,255,0.1); }
    50%  { opacity: 1;   text-shadow: 0 0 60px rgba(212, 175, 55, 0.2); }
    100% { opacity: 0.7; text-shadow: 0 0 40px rgba(255,255,255,0.1); }
}

.title {
    animation: fadeInUp 1.5s forwards, subtlePulse 3s 1.5s infinite ease-in-out;
}

/* ============================
   Mobile
   ============================ */
@media (max-width: 768px) {
    .content { gap: 1.5rem; padding: 1.5rem; }
    .gold-accent { width: 40px; }
    .social-btn { width: 46px; height: 46px; border-radius: 13px; }
}