/* تنظیمات پایه و فونت */
:root {
    --primary-color: #00f2ea;
    --secondary-color: #ff0050;
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --font-main: 'Doran', sans-serif;
}

@font-face {
    font-family: 'Motevaselian';
    src: url('font/Motevaselian.woff2') format('woff2'),
         url('font/Motevaselian.woff') format('woff');
         url('font/Motevaselian.ttf') format('truetype');
    font-weight: normal;
    font-display: swap;
}

/* فونت جایگزین */
@import url('https://fonts.googleapis.com/css2?family=Lalezar&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* حذف هایلایت آبی لمسی */
}

body {
    font-family: var(--font-main), 'Lalezar', cursive;
    background-color: var(--bg-dark);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    cursor: default; /* نشانگر استاندارد */
}

/* برای دسکتاپ وقتی موس حرکت می‌کند */
body.desktop-hover {
    cursor: none; /* مخفی کردن موس پیش‌فرض برای تمرکز بر افکت */
}

#canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 420px;
    padding: 50px 30px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 100px rgba(0, 242, 234, 0.1);
    transform-style: preserve-3d;
    /* فقط برای افکت هاور روی دسکتاپ ترنزیشن داریم */
    transition: transform 0.1s ease-out; 
    text-align: center;
    touch-action: none; /* جلوگیری از هرگونه اسکرول یا زوم */
}

.main-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 30px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.logo-section {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    transform: translateZ(50px);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.orbit {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    animation: spin 4s linear infinite;
    z-index: 1;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.orbit-2 {
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-right: 2px solid var(--primary-color);
    animation: spin-reverse 7s linear infinite;
}

h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateZ(30px);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    transform: translateZ(20px);
    font-weight: 300;
}

.buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateZ(40px);
}

.magnetic-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-family: var(--font-main);
    overflow: hidden;
    transition: transform 0.1s ease, background 0.3s; 
}

.magnetic-btn svg {
    width: 26px;
    height: 26px;
    margin-left: 12px;
    fill: currentColor;
}

.btn-icon {
    width: 26px;
    height: 26px;
    margin-left: 12px;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #ff5e00);
    transition: width 0.4s ease;
    z-index: -1;
}

.magnetic-btn:active {
    transform: scale(0.95);
}

.magnetic-btn:hover {
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 10px 30px -10px rgba(255, 0, 80, 0.5);
}

.magnetic-btn:hover svg,
.magnetic-btn:hover .btn-icon {
    transform: rotate(15deg) scale(1.2);
}

.magnetic-btn:hover::before {
    width: 100%;
}

.btn-instagram::before {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.btn-instagram:hover {
    box-shadow: 0 10px 30px -10px rgba(220, 39, 67, 0.6);
}

.glow-layer {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 242, 234, 0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    filter: blur(40px);
    /* تغییر نرم موقعیت برای دنبال کردن موس/لمس */
    transition: transform 0.1s ease-out;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes spin-reverse { 0% { transform: rotate(360deg); } 100% { transform: rotate(0deg); } }

/* --- استایل فوتر --- */
.site-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 5;
    letter-spacing: 1px;
    padding-bottom: 10px;
}

.site-footer span {
    position: relative;
    display: inline-block;
    padding-top: 10px;
    transition: color 0.3s ease;
}

.site-footer::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 8px auto;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .site-footer {
        bottom: 10px;
        font-size: 0.75rem;
    }
    .main-container {
        margin-bottom: 60px; 
    }
}
