@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00ff88;
    --secondary: #00d4ff;
    --accent: #ff00ff;
    --warning: #ffaa00;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --dark-lighter: #2a2a2a;
    --text: #e0e0e0;
    --text-dim: #888888;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.header.fade-out {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
    text-transform: uppercase;
}

.logo-text .accent {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.domain {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/IMG1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: backgroundSlide 15s infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 26, 0.7) 0%,
        rgba(10, 10, 26, 0.85) 50%,
        rgba(10, 10, 26, 0.95) 100%
    );
    z-index: 0;
}

@keyframes backgroundSlide {
    0%, 33% { background-image: url('assets/IMG1.png'); opacity: 1; }
    35%, 40% { opacity: 0.5; }
    42%, 66% { background-image: url('assets/IMG2.jpg'); opacity: 1; }
    68%, 73% { opacity: 0.5; }
    75%, 100% { background-image: url('assets/IMG3.png'); opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-title .glitch {
    color: var(--primary);
    text-shadow: 
        0 0 10px var(--primary),
        0 0 20px var(--primary),
        0 0 40px var(--primary);
    display: block;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.hero-title .block {
    display: block;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active .btn-glow {
    width: 300px;
    height: 300px;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background: var(--dark-light);
    border-top: 1px solid var(--dark-lighter);
    border-bottom: 1px solid var(--dark-lighter);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-light);
    padding: 2.5rem;
    border: 2px solid var(--dark-lighter);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Filter Container */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--dark);
    color: var(--text);
    border: 2px solid var(--dark-lighter);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
}

.download-item {
    background: var(--dark);
    padding: 2rem;
    border: 2px solid var(--dark-lighter);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
}

.download-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.download-item.hidden {
    display: none;
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.download-header h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin: 0;
}

.badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    white-space: nowrap;
}

.badge-client {
    background: var(--secondary);
    color: var(--dark);
}

.badge-server {
    background: var(--accent);
    color: var(--dark);
}

.version {
    display: inline-block;
    background: var(--dark-lighter);
    color: var(--text-dim);
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.download-description {
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.download-features {
    list-style: none;
    margin-bottom: 1rem;
}

.download-features li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
}

.download-meta {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--dark-lighter);
    border-bottom: 1px solid var(--dark-lighter);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.download-item .btn {
    width: 100%;
    margin-top: auto;
}

/* Download Preview */
.download-preview {
    width: 100%;
    margin-bottom: 1rem;
    border: 2px solid var(--dark-lighter);
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.download-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact */
.contact-text {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-dim);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2300ff88" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--dark);
    color: var(--text);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
    opacity: 0.6;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 1.2rem;
}

.contact-form.submitting .submit-btn {
    opacity: 0.6;
    pointer-events: none;
}

.contact-form.submitting .submit-btn span::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Footer */
.footer {
    background: var(--dark-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--primary);
}

.footer p {
    color: var(--text-dim);
    margin: 0.5rem 0;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
