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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #50b95d 0%, #3a8f47 50%, #2d7238 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo-animated {
    width: 400px;
    height: auto;
    max-width: 90vw;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
    display: block !important;
    margin: 0 auto;
    border-radius: 15px;
    object-fit: contain;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #f5af04, #ffffff, #50b95d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    display: none; /* Hidden since we're using animated logo */
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 700px;
    margin-bottom: 3rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(245, 175, 4, 0.3);
    border-radius: 20px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 175, 4, 0.2), transparent);
    transition: left 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(245, 175, 4, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.link-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.telegram .icon {
    background: linear-gradient(135deg, #0088cc, #0066aa);
}

.tv .icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.instagram .icon {
    background: linear-gradient(135deg, #e4405f, #833ab4, #f77737);
}

.twitter .icon {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
}

.youtube .icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.dev-site .icon {
    background: linear-gradient(135deg, #50b95d, #3a8f47);
    border: 2px solid #f5af04;
}

.logo-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px;
}

.logo-icon img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px;
    object-fit: contain;
}

.x-logo-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px;
}

.x-logo-icon img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    display: block !important;
}

.link-card:hover .icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.content {
    flex: 1;
}

.content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.content p {
    font-size: 1rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content p i {
    transition: transform 0.3s ease;
    color: #f5af04;
}

.link-card:hover .content p i {
    transform: translateX(5px);
    color: #ffffff;
}

.footer {
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 0.8s both;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .logo-animated {
        width: 300px;
        max-width: 85vw;
    }
    
    .logo {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .link-card {
        padding: 1.2rem;
    }
    
    .link-card .icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-right: 1rem;
    }
    
    .content h3 {
        font-size: 1.2rem;
    }
    
    .content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.8rem;
    }
    
    .logo-animated {
        width: 250px;
        max-width: 80vw;
    }
    
    .logo {
        font-size: 2.4rem;
    }
    
    .header {
        margin-bottom: 2rem;
    }
    
    .links-grid {
        margin-bottom: 2rem;
    }
    
    .link-card {
        padding: 1rem;
    }
}

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
    .link-card {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .link-card:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.link-card:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}
