* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-x: hidden;
}

.linktree-container {
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.linktree-header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    color: #333;
    z-index: 1;
    background: white;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: -1;
}

.header-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 0.7s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.header-logo {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-logo:hover {
    transform: scale(1.1);
}

.header-logo.expanded {
    width: 200px;
    height: 200px;
}

.header-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 15px;
    line-height: 1.4;
    color: #333;
}

.header-description {
    font-size: 12px;
    opacity: 0.7;
    color: #666;
    margin-top: 10px;
}

.linktree-main {
    animation: fadeIn 0.7s ease-out 0.4s both;
}

.survey-highlight {
    margin-bottom: 25px;
    animation: fadeIn 0.7s ease-out 0.3s both;
}

.projects-group {
    margin-bottom: 15px;
    animation: fadeIn 0.7s ease-out 0.25s both;
}

.projects-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: inline-block !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.special-followup-highlight {
    margin-bottom: 25px;
    animation: fadeIn 0.7s ease-out 0.3s both;
}

.special-followup-title {
    background: linear-gradient(135deg, #ff6b9d 0%, #c71585 100%);
    display: inline-block !important;
    font-size: 15px;
    font-weight: 900 !important;
    letter-spacing: 2px;
    animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-8px) scale(1.05); opacity: 0.95; }
}

.special-followup-link {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1493 50%, #c71585 100%) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4) !important;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.special-followup-link::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    50% { opacity: 0.8; }
}

.special-followup-link::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    opacity: 0.9;
    animation: sparkle 1s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(15deg); }
}

.special-followup-link:hover {
    background: linear-gradient(135deg, #ff1493 0%, #c71585 50%, #ff6b9d 100%) !important;
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 18px 45px rgba(255, 107, 157, 0.6) !important;
}

.special-followup-link .link-content h3 {
    color: white !important;
    font-weight: 800 !important;
    font-size: 16px;
}

.special-followup-link .link-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.special-followup-icon {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-size: 28px !important;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.survey-link {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ff6b9d 100%) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.survey-link::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 16px;
    opacity: 0.8;
    animation: twinkle 2s ease-in-out infinite;
}

.membership-link {
    background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 50%, #00d2d3 100%) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 25px rgba(29, 209, 161, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.membership-link::after {
    content: '🎓';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 16px;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.survey-link:hover {
    background: linear-gradient(135deg, #ff8e53 0%, #ff6b6b 50%, #ff6b9d 100%) !important;
    transform: translateY(-7px) !important;
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4) !important;
}

.membership-link:hover {
    background: linear-gradient(135deg, #00d2d3 0%, #1dd1a1 50%, #10ac84 100%) !important;
    transform: translateY(-7px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(29, 209, 161, 0.5) !important;
}

.survey-link .link-content h3, .membership-link .link-content h3 {
    color: white !important;
    font-weight: 700 !important;
}

.survey-link .link-content p, .membership-link .link-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.survey-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    font-size: 24px;
    flex-shrink: 0;
    margin-right: 15px;
    color: white;
    font-weight: bold;
}

.link-card img.link-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 50px;
    height: 50px;
    object-fit: contain;
    padding: 8px;
}

.bale-link .link-icon { background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%); }
.eitaa-link .link-icon { background: linear-gradient(135deg, #009688 0%, #00796b 100%); }
.instagram-link .link-icon { background: linear-gradient(135deg, #f09433 0%, #e6683c 50%, #dc2743 100%); }
.telegram-link .link-icon { background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%); }
.website-link .link-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.contact-link .link-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.email-link .link-icon { background: linear-gradient(135deg, #fa7e1e 0%, #d62828 100%); }
.address-link .link-icon { background: linear-gradient(135deg, #30b0c5 0%, #2d7a8a 100%); }
.about-link .link-icon { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }

.link-content {
    flex: 1;
    text-align: right;
    margin-right: 10px;
}

.link-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
    color: #222;
}

.link-content p {
    font-size: 12px;
    color: #999;
}

.link-arrow {
    font-size: 24px;
    color: #667eea;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.social-group, .contact-group {
    margin-bottom: 20px;
}

.group-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.linktree-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
    font-size: 11px;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .header-logo { width: 100px; }
    .header-logo.expanded { width: 180px; height: 180px; }
    .header-title { font-size: 14px; }
    .link-icon { width: 52px; height: 52px; font-size: 22px; }
}
