/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin-top: -80px;
    border-bottom: 1px solid var(--glass-border);
}

/* Hero Background */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-image {
    position: absolute;
    inset: 0;
    /* background-image: url('https://images.unsplash.com/photo-1697479670670-d2a299df749c?q=80&w=2070&auto=format&fit=crop'); */
    background-image: url('../images/fm-nexus/mc-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.3) blur(0px);
}

.hero-image-hytale {
    position: absolute;
    inset: 0;
    background-image: url('../images/fm-nexus/hytale-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1) blur(2px);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        transparent 40%,
        transparent 60%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

/* Hero Content */
.hero-content {
    position: relative;
    text-align: center;
    padding: 10rem 1rem 6rem;
    z-index: 1;
}

/* Logo */
.hero-logo {
    display: inline-block;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.hero-logo-img {
    display: block;
    width: auto;
    height: 5rem;
    margin: 0 auto;
    border-radius: 0.5rem;
}

/* Responsive logo sizes */
@media (min-width: 640px) {
    .hero-logo {
        margin-bottom: 2.5rem;
    }
    .hero-logo-img {
        height: 5rem;
    }
}

@media (min-width: 768px) {
    .hero-logo {
        margin-bottom: 3rem;
    }
    .hero-logo-img {
        height: 7rem;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        margin-bottom: 3.25rem;
    }
    .hero-logo-img {
        height: 10rem;
    }
}

@media (min-width: 1280px) {
    .hero-logo {
        margin-bottom: 3.5rem;
    }
    .hero-subtitle {
        max-width: 42rem;
    }
    .hero-logo-img {
        height: 11rem;
    }
}

@media (min-width: 1921px) {
    .hero-logo {
        margin-bottom: 5rem;
    }
    .hero-logo-img {
        height: 18rem;
    }
}

/* @media (min-width: 1920px) {
    .hero-logo {
        margin-bottom: 4rem;
    }
    .hero-logo-img {
        height: 13rem;
    }
} */

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Title */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    animation: slide-up 0.8s ease-out;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.25rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (min-width: 1280px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1921px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    max-width: 52rem;
    margin: 0 auto 2.5rem;
    animation: slide-up 0.8s ease-out 0.1s backwards;
}

@media (max-width: 640px) {
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 1921px) {
    .hero-subtitle {
        font-size: 1.35rem;
    }
}

/* Buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slide-up 0.8s ease-out 0.2s backwards;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1921px) {
    .hero-buttons {
        margin-bottom: 5.5rem;
    }
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-hero svg {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
}

.btn-hero.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    color: var(--primary-foreground);
    box-shadow: 0 0 20px rgba(226, 1, 205, 0.3);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(226, 1, 205, 0.5);
}

.btn-hero.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-glow) 100%);
    color: var(--secondary-alter-foreground);
    box-shadow: 0 0 20px rgba(51, 240, 240, 0.3);
}

.btn-hero.btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 30px rgba(51, 240, 240, 0.5);
}

/* Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 36rem;
    margin: 0 auto 4rem;
    animation: slide-up 0.8s ease-out 0.3s backwards;
}

@media (min-width: 640px) {
    .hero-stats {
        gap: 2rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 1.875rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 0.75s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: var(--primary);
}

.scroll-indicator svg {
    width: 2rem;
    height: 2rem;
}

@media (max-width: 1921px) {
    .scroll-indicator {
        bottom: 0rem;
        height: 8rem;
    }
}

@media (min-width: 1921px) {
    .scroll-indicator svg {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

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


/* ========================================
   SOCIAL LINKS - FM-NEXUS 1:1 COPY
======================================== */

.social-links-container {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    animation: slide-up 0.8s ease-out 0.4s backwards;
}

.social-link {
    /* Размеры: w-10 h-10 = 40x40px */
    width: 48px;
    height: 48px;
    
    /* Закругление: rounded-lg */
    border-radius: 0.75rem; /* 8px */
    
    /* Glass effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    
    /* Flexbox для центрирования иконки */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Цвет иконки */
    color: var(--muted-foreground, #737373);
    
    /* Transitions */
    transition: all 0.3s ease;
    
    /* Убираем подчеркивание ссылки */
    text-decoration: none;
}

/* Dark theme */
[data-theme="dark"] .social-link {
    /* background: rgba(10, 10, 10, 0.8); */
    background: var(--glass-bg);
    /* border-color: rgba(255, 255, 255, 0.1); */
    /* border-color: 1px solid var(--glass-border); */
}

/* Hover эффект - ТОЧНО как в fm-nexus */
.social-link:hover {
    color: var(--primary, #E201CD);
    border-color: rgba(226, 1, 205, 0.3);
    background: rgba(226, 1, 205, 0.05);
    transform: translateY(-2px);
}

/* SVG внутри кнопки */
.social-link svg {
    width: 24px; /* w-5 */
    height: 24px; /* h-5 */
    flex-shrink: 0;
}

/* Active/Focus состояния */
.social-link:active {
    transform: translateY(0);
}

.social-link:focus-visible {
    outline: 2px solid var(--primary, #E201CD);
    outline-offset: 2px;
}

/* Адаптив */
@media (max-width: 640px) {
    .social-links-container {
        gap: 1.5rem; /* На мобилке чуть меньше */
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1921px) {
    .social-link {
        width: 56px;
        height: 56px;
    }

    .social-link svg {
        width: 32px;
        height: 32px;
    }
}





/* ========================================
   PICKAXE STRIKE ANIMATION - SIMPLE
======================================== */

.btn-pickaxe-strike {
    position: relative;
}

/* Иконка кирки */
.pickaxe-icon {
    transition: transform 0.2s ease;
    transform-origin: 60% 40%;
}

/* Анимация удара */
.btn-pickaxe-strike:hover .pickaxe-icon {
    animation: pickaxe-strike 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes pickaxe-strike {
    0% { transform: rotate(0deg) translateY(0); }
    20% { transform: rotate(-25deg) translateY(-3px) translateX(-2px); }
    35% { transform: rotate(-25deg) translateY(-3px) translateX(-2px); }
    55% { transform: rotate(30deg) translateY(4px) translateX(2px); }
    70% { transform: rotate(30deg) translateY(4px) translateX(2px); }
    85% { transform: rotate(30deg) translateY(4px) translateX(2px); }
    /* 85% { transform: rotate(0deg) translateY(0px); } */
    100% { transform: rotate(0deg) translateY(0); }
}

/* Частицы - абсолютное позиционирование */
.btn-pickaxe-strike .strike-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #6e006b;
    border-radius: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
}

.btn-pickaxe-strike {
    --particle-offset-x: 51px; /* Горизонталь */
    --particle-offset-y: 60%;  /* Вертикаль - настраивай это */
}

.btn-pickaxe-strike .strike-particle.p1 {
    left: var(--particle-offset-x);
    top: var(--particle-offset-y);
}

.btn-pickaxe-strike .strike-particle.p2 {
    left: calc(var(--particle-offset-x) + 4px);
    top: calc(var(--particle-offset-y) + 2%);
}

.btn-pickaxe-strike .strike-particle.p3 {
    left: calc(var(--particle-offset-x) - 2px);
    top: calc(var(--particle-offset-y) + 4%);
}

.btn-pickaxe-strike .strike-particle.p4 {
    left: calc(var(--particle-offset-x) + 2px);
    top: calc(var(--particle-offset-y) - 2%);
}



/* Анимация при hover */
.btn-pickaxe-strike:hover .strike-particle.p1 {
    animation: burst1 0.7s ease-out 0.4s infinite;
}

.btn-pickaxe-strike:hover .strike-particle.p2 {
    animation: burst2 0.7s ease-out 0.42s infinite;
}

.btn-pickaxe-strike:hover .strike-particle.p3 {
    animation: burst3 0.7s ease-out 0.38s infinite;
}

.btn-pickaxe-strike:hover .strike-particle.p4 {
    animation: burst4 0.7s ease-out 0.41s infinite;
}

@keyframes burst1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-12px, 18px) scale(1.5);
    }
}

@keyframes burst2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(6px, 20px) scale(1.2);
    }
}

@keyframes burst3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-16px, 15px) scale(1.3);
    }
}

@keyframes burst4 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(10px, 16px) scale(1.4);
    }
}

