.button-glow {
    position: relative;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: var(--primary-blue);
    color: #fff;
}

.button-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #00a8ff, #0066ff, #00ccff, #00a8ff);
    background-size: 400%;
    z-index: -1;
    animation: glowingBorder 20s linear infinite;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 7px;
}

.button-glow:hover::before {
    opacity: 1;
}

.button-glow:active {
    transform: scale(0.95);
}

.server-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    position: relative;
    z-index: 2;
}

.ip-text {
    background: rgba(0, 168, 255, 0.15);
    padding: 20px 35px;
    border-radius: 10px;
    border: 2px solid rgba(0, 168, 255, 0.3);
    color: #fff;
    font-family: 'Audiowide', monospace;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
}

.ip-text:hover {
    transform: translateY(-2px);
    border-color: var(--primary-blue);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
}

.ip-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 168, 255, 0.3),
        transparent
    );
    animation: shine 3s infinite;
}

.copy-button {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
}

.copy-button:hover::before {
    animation: buttonShine 1s;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.job-card {
    background: rgba(22, 27, 34, 0.7);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.job-card:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.job-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.job-card:hover i {
    color: #fff;
}

.job-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

@keyframes glowingBorder {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@keyframes shine {
    to {
        left: 100%;
    }
}

@keyframes buttonShine {
    0% { transform: translateX(-200%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.video-modal .modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media (max-width: 1200px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .discord-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .video-modal .modal-content {
        padding: 10px;
    }
    
    .close-modal {
        right: 0;
        top: -50px;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 15px;
    }

    .discord-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .server-ip {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .server-stats {
        justify-content: center;
    }

    .links-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .social-grid {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 15px;
    }

    .discord-card {
        padding: 20px;
    }

    .server-stats {
        flex-direction: column;
        align-items: center;
    }

    .discord-join-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.main-footer {
    position: relative;
    background: linear-gradient(180deg, var(--secondary-bg) 0%, #05070a 100%);
    padding: 80px 0 30px;
    color: var(--text-secondary);
    overflow: hidden;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave {
    position: absolute;
    width: 200%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 88.7'%3E%3Cpath d='M800 56.9c-155.5 0-204.9-50-405.5-49.9-200 0-250 49.9-394.5 49.9v31.8h800v-.2-31.6z' fill='%2300a8ff' fill-opacity='.1'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 25s linear infinite;
}

.wave1 { opacity: 0.15; }
.wave2 { 
    top: 10px;
    opacity: 0.1;
    animation-delay: -5s;
    animation-duration: 20s;
}
.wave3 { 
    top: 20px;
    opacity: 0.05;
    animation-delay: -2s;
    animation-duration: 15s;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    position: relative;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-family: 'Audiowide', cursive;
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
}

.footer-logo span {
    color: var(--primary-blue);
}

.logo-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary-blue);
    filter: blur(60px);
    opacity: 0.2;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: logoGlow 4s ease-in-out infinite;
}

.server-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-blue);
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.footer-link:hover {
    background: rgba(0, 168, 255, 0.1);
    color: var(--primary-blue);
    transform: translateX(-5px);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    opacity: 0.2;
    transition: all 0.3s ease;
    transform: scale(0);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-5px);
}

.aparat { color: #ED145B; }
.discord { color: #5865F2; }
.teamspeak { color: #2580C3; }
.telegram { color: #0088cc; }

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info .copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-info .footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-info .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-info .footer-links a:hover {
    color: var(--primary-blue);
}

.separator {
    color: rgba(255, 255, 255, 0.1);
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes logoGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.1; }
}

.discord-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.discord-card {
    background: linear-gradient(145deg, rgba(22, 27, 34, 0.8), rgba(13, 17, 23, 0.9));
    border: 1px solid rgba(0, 168, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 168, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 168, 255, 0.1);
}

.discord-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 168, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.discord-icon.government {
    background: rgba(255, 152, 0, 0.1);
}

.discord-icon.support {
    background: rgba(46, 204, 113, 0.1);
}

.discord-icon i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.discord-icon.government i {
    color: #ff9800;
}

.discord-icon.support i {
    color: #2ecc71;
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    animation: pulse 2s infinite;
    background: var(--primary-blue);
    opacity: 0.1;
}

.government .pulse {
    background: #ff9800;
}

.support .pulse {
    background: #2ecc71;
}

.discord-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.server-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.server-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.stat i {
    color: var(--primary-blue);
}

.government .stat i {
    color: #ff9800;
}

.support .stat i {
    color: #2ecc71;
}

.discord-join-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.discord-join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.discord-join-btn:hover::before {
    left: 100%;
}

.discord-join-btn.primary {
    background: var(--primary-blue);
    color: #fff;
}

.discord-join-btn.government {
    background: #ff9800;
    color: #fff;
}

.discord-join-btn.support {
    background: #2ecc71;
    color: #fff;
}

.discord-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.1; }
}

@media (max-width: 1200px) {
    .jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-section.connect {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-section.connect {
        grid-column: auto;
    }
    .footer-info {
        flex-direction: column;
        text-align: center;
    }
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 280px;
        margin: 0 auto 30px;
    }
    .links-grid {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
}