/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #ff0033;
    --secondary-red: #cc0026;
    --dark-red: #99001a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #666666;
    --dark-gray: #333333;
    --black: #000000;
    --gradient-red: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    --shadow-3d: 0 10px 30px rgba(255, 0, 51, 0.3);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Анимация фона */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 80%, var(--primary-red) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--secondary-red) 0%, transparent 50%),
                var(--black);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-red);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 30%;
    animation-delay: -15s;
}

.shape-5 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 60%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 51, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 0 0 20px var(--primary-red);
    letter-spacing: 3px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--gray);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red);
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--primary-red);
    transform: translateZ(0);
    animation: titleGlow 1s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 30px var(--primary-red);
    }
    100% {
        text-shadow: 0 0 50px var(--primary-red), 0 0 100px var(--primary-red);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

/* Version Info */
.version-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.version-badge {
    background: var(--gradient-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-3d);
}

.update-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 0, 51, 0.3);
}

.cta-button {
    position: relative;
    background: var(--gradient-red);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 0, 51, 0.5);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover .button-glow {
    left: 100%;
}

/* 3D Cube Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-container {
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s infinite linear;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient-red);
    border: 2px solid var(--white);
    opacity: 0.8;
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: translateZ(-100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Services Section */
.services-section {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Cards */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 0, 51, 0.3);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-3d);
    border-color: var(--primary-red);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.icon-3d {
    width: 80px;
    height: 80px;
    position: relative;
}

/* 3D Cube Icon */
.icon-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateIcon 8s infinite linear;
}

@keyframes rotateIcon {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.icon-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-red);
    border: 1px solid var(--white);
    opacity: 0.9;
}

.icon-front { transform: translateZ(30px); }
.icon-back { transform: translateZ(-30px); }
.icon-right { transform: rotateY(90deg) translateZ(30px); }
.icon-left { transform: rotateY(-90deg) translateZ(30px); }
.icon-top { transform: rotateX(90deg) translateZ(30px); }
.icon-bottom { transform: rotateX(-90deg) translateZ(30px); }

/* 3D Sphere Icon */
.icon-sphere {
    width: 60px;
    height: 60px;
    position: relative;
    animation: rotateSphere 6s infinite linear;
}

@keyframes rotateSphere {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.sphere-ring {
    position: absolute;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    animation: pulseRing 2s infinite ease-in-out;
}

.ring-1 {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.ring-2 {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 20px;
    height: 20px;
    top: 20px;
    left: 20px;
    animation-delay: 1s;
}

@keyframes pulseRing {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.sphere-core {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    border-radius: 50%;
    top: 25px;
    left: 25px;
    box-shadow: 0 0 20px var(--primary-red);
}

/* 3D Pyramid Icon */
.icon-pyramid {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotatePyramid 10s infinite linear;
}

@keyframes rotatePyramid {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.pyramid-face {
    position: absolute;
    background: var(--gradient-red);
    border: 1px solid var(--white);
    opacity: 0.9;
}

.pyramid-front {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: translateZ(30px);
}

.pyramid-left {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotateY(-90deg) translateZ(30px);
}

.pyramid-right {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotateY(90deg) translateZ(30px);
}

.pyramid-back {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotateY(180deg) translateZ(30px);
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.card-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    background: var(--gradient-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Download Info */
.download-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 51, 0.2);
}

.file-size {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.downloads-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.card-button {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: fit-content;
}

.card-button:hover {
    background: var(--gradient-red);
    color: var(--white);
    transform: translateX(5px);
    text-decoration: none;
}

.button-arrow {
    transition: transform 0.3s ease;
}

.card-button:hover .button-arrow {
    transform: translateX(5px);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-pattern {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 51, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 51, 0.1) 0%, transparent 50%);
}

/* About Section */
.about-section {
    padding: 5rem 5%;
    background: var(--black);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.about-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 0, 51, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 51, 0.3);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-weight: 600;
}

/* 3D Geometric Shapes */
.geometric-shapes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    height: 300px;
}

.shape-3d {
    width: 100px;
    height: 100px;
    animation: floatShape 6s infinite ease-in-out;
}

.pyramid {
    background: var(--gradient-red);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 0s;
}

.cylinder {
    background: var(--gradient-red);
    border-radius: 50px 50px 0 0;
    animation-delay: 2s;
}

.torus {
    background: var(--gradient-red);
    border-radius: 50%;
    border: 10px solid transparent;
    box-shadow: inset 0 0 20px var(--primary-red);
    animation-delay: 4s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Contact Section */
.contact-section {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.8);
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 51, 0.3);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-red);
    box-shadow: var(--shadow-3d);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-red);
    border-radius: 50%;
}

.contact-details h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--gray);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 0, 51, 0.3);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: var(--black);
    color: var(--white);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    position: relative;
    background: var(--gradient-red);
    border: none;
    padding: 1rem 2rem;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-3d);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 51, 0.5);
}

.submit-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover .submit-glow {
    left: 100%;
}

/* Footer */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 0, 51, 0.3);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.footer-logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-red);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-red);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-red);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3d);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 0, 51, 0.3);
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .version-info {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .download-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .version-info {
        flex-direction: column;
        align-items: center;
    }
}
