/* CSS Variables */
:root {
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --tertiary-bg: #1a1a1a;
    --neon-green: #00ff00;
    --neon-red: #ff0000;
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --font-primary: 'Orbitron', monospace;
    --font-secondary: 'Source Code Pro', monospace;
    --glow-size: 20px;
    --border-radius: 4px;
    --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated Background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--neon-green), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--neon-blue), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--neon-pink), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--text-primary), transparent),
        radial-gradient(2px 2px at 160px 30px, var(--neon-red), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: stars-move 20s linear infinite;
}

.nebula-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 255, 0, 0.1) 0%, 
        rgba(255, 0, 255, 0.05) 30%, 
        transparent 70%);
    animation: nebula-pulse 10s ease-in-out infinite alternate;
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.03) 2px,
        rgba(0, 255, 0, 0.03) 4px
    );
    animation: scan-lines-move 2s linear infinite;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Animations */
@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

@keyframes nebula-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes scan-lines-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-2px); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--neon-green); }
}

@keyframes neon-glow {
    0%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px currentColor;
    }
    50% {
        text-shadow: 
            0 0 2px currentColor,
            0 0 5px currentColor,
            0 0 8px currentColor,
            0 0 12px currentColor;
    }
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neon-green);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-green);
    text-decoration: none;
    position: relative;
}

.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch 0.3s infinite;
    color: var(--neon-red);
    z-index: -1;
    clip: rect(24px, 550px, 90px, 0);
}

.glitch::after {
    animation: glitch 0.3s infinite reverse;
    color: var(--neon-blue);
    z-index: -2;
    clip: rect(85px, 550px, 140px, 0);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    position: relative;
    transition: all var(--transition-speed) ease;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.nav-link:hover::before {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--neon-green);
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

.hero-left-text {
    z-index: 2;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.big-code-text {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 30px var(--neon-green);
    line-height: 0.8;
    letter-spacing: 0.1em;
    opacity: 0.3;
    transform: rotate(180deg);
    white-space: nowrap;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--neon-green);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--neon-green);
    margin-bottom: 2rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: neon-glow 2s ease-in-out infinite alternate;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    color: var(--neon-green);
    text-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green),
        0 0 30px var(--neon-green);
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid var(--neon-green);
    white-space: nowrap;
    animation: 
        typing 2s steps(20, end),
        blink 1s step-end infinite;
}

.typing-animation.delay-1 {
    animation-delay: 2s;
    animation-fill-mode: both;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.cta-btn {
    position: relative;
    padding: 1rem 2rem;
    border: 2px solid;
    background: transparent;
    color: inherit;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.cta-btn.primary {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.cta-btn.secondary {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-btn.primary:hover {
    background: var(--neon-green);
    color: var(--primary-bg);
    box-shadow: 0 0 30px var(--neon-green);
}

.cta-btn.secondary:hover {
    background: var(--text-secondary);
    color: var(--primary-bg);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover .btn-glow {
    left: 100%;
}

/* Matrix Code Rain Scene */
.matrix-scene {
    position: relative;
    width: 600px;
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--neon-green);
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.8);
}

.matrix-canvas {
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.terminal-text {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    text-align: center;
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--neon-green);
    animation: terminal-typing 4s steps(20, end) infinite, neon-flicker 2s infinite;
}

.cursor {
    animation: cursor-blink 1s infinite;
    color: var(--neon-green);
    font-weight: 100;
}

@keyframes terminal-typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes neon-flicker {
    0%, 100% { 
        text-shadow: 0 0 20px var(--neon-green); 
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 30px var(--neon-green), 0 0 40px var(--neon-green); 
        filter: brightness(1.2);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    animation: float 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-tertiary);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

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

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    margin-bottom: 1rem;
}

.title-bracket {
    color: var(--neon-red);
    font-weight: 900;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Services Section */
.services {
    background: linear-gradient(135deg, 
        rgba(0, 255, 0, 0.05) 0%, 
        transparent 50%, 
        rgba(255, 0, 255, 0.05) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--tertiary-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.service-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.pixel-icon {
    width: 100%;
    height: 100%;
    border: 2px solid var(--neon-green);
    position: relative;
}

.telegram-icon::before {
    content: '📱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.web-icon::before {
    content: '🌐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.desktop-icon::before {
    content: '💻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.business-icon::before {
    content: '⚡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue), var(--neon-pink), var(--neon-red));
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.service-card:hover .card-glow {
    opacity: 0.3;
}

/* Advantages Section */
.advantages {
    padding: 100px 0;
}

/* Statistics removed from landing page - admin only */

/* Contacts Section */
.contacts {
    background: rgba(255, 0, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 2px solid;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.telegram-btn {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.github-btn {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.telegram-btn:hover {
    background: var(--neon-blue);
    color: var(--primary-bg);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.github-btn:hover {
    background: var(--text-secondary);
    color: var(--primary-bg);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Contact Form */
.contact-form-container {
    background: var(--tertiary-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.contact-form-container h3 {
    font-family: var(--font-primary);
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary-bg);
    border: 2px solid var(--neon-green);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    border-color: var(--neon-blue);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.submit-btn {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--neon-green);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.submit-btn .btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn:hover .btn-glow {
    transform: translateX(100%);
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--tertiary-bg);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo .logo-text {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--neon-green);
}

.logo-status {
    font-size: 0.8rem;
    color: var(--neon-red);
}

.footer-description {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-link:hover {
    color: var(--neon-green);
}

.footer-separator {
    color: var(--text-tertiary);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--secondary-bg);
    border: 1px solid var(--neon-green);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--tertiary-bg);
}

.modal-header h2 {
    font-family: var(--font-primary);
    color: var(--neon-green);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.modal-close:hover {
    color: var(--neon-red);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h3 {
    color: var(--neon-green);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-body ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed) ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-left-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .matrix-scene {
        width: 350px;
        height: 200px;
        margin: 0 auto;
    }

    .terminal-text {
        font-size: 1.2rem;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-neon-green { color: var(--neon-green); }
.text-neon-red { color: var(--neon-red); }
.text-neon-blue { color: var(--neon-blue); }
.text-neon-pink { color: var(--neon-pink); }

.glow-green { 
    text-shadow: 0 0 10px var(--neon-green); 
    animation: neon-glow 2s ease-in-out infinite alternate;
}

.glow-red { 
    text-shadow: 0 0 10px var(--neon-red); 
    animation: neon-glow 2s ease-in-out infinite alternate;
}

.glow-blue { 
    text-shadow: 0 0 10px var(--neon-blue); 
    animation: neon-glow 2s ease-in-out infinite alternate;
}

/* Portfolio Section */
.portfolio {
    background: var(--secondary-bg);
    padding: 80px 0;
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-placeholder {
    background: var(--tertiary-bg);
    border: 2px solid var(--neon-green);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.portfolio-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.portfolio-placeholder h3 {
    font-family: var(--font-primary);
    color: var(--neon-green);
    margin-bottom: 1rem;
}

.portfolio-placeholder p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.portfolio-item {
    background: var(--tertiary-bg);
    border: 2px solid var(--neon-green);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder-img {
    width: 100%;
    height: 200px;
    background: var(--tertiary-bg);
    border: 2px dashed var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--neon-green);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-links {
    text-align: center;
}

.portfolio-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--neon-green);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    transition: all var(--transition-speed) ease;
}

.portfolio-link:hover {
    background: var(--neon-blue);
    transform: translateY(-2px);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-family: var(--font-primary);
    color: var(--neon-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.portfolio-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--neon-green);
    color: var(--primary-bg);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: bold;
}

.portfolio-content h3 {
    font-family: var(--font-primary);
    color: var(--neon-green);
}

/* Terminal Section */
.terminal-section {
    background: var(--secondary-bg);
    padding: 80px 0;
    position: relative;
}

.terminal-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.terminal-window {
    background: #000;
    border: 2px solid var(--neon-green);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--tertiary-bg);
    border-bottom: 1px solid var(--neon-green);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.btn-close {
    background: var(--neon-red);
    box-shadow: 0 0 5px var(--neon-red);
}

.btn-minimize {
    background: #ffff00;
    box-shadow: 0 0 5px #ffff00;
}

.btn-maximize {
    background: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
}

.terminal-title {
    color: var(--neon-green);
    font-family: var(--font-secondary);
    font-weight: bold;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-secondary);
    line-height: 1.8;
    min-height: 300px;
}

.terminal-line {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
}

.prompt {
    color: var(--neon-green);
    margin-right: 8px;
}

.command {
    color: var(--neon-blue);
}

.output {
    color: var(--text-primary);
    margin-left: 20px;
}

.output.success {
    color: var(--neon-green);
}

.code-block {
    background: rgba(0, 255, 0, 0.05);
    border-left: 3px solid var(--neon-green);
    padding: 15px;
    margin: 10px 0;
    border-radius: var(--border-radius);
    flex-direction: column;
}

.code-line {
    display: block;
    margin-bottom: 4px;
}

.keyword {
    color: var(--neon-pink);
    font-weight: bold;
}

.variable {
    color: var(--neon-blue);
}

.method {
    color: var(--neon-green);
}

.string {
    color: #ffff00;
}

.cursor {
    color: var(--neon-green);
    animation: cursor-blink 1s infinite;
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--neon-green);
    font-family: var(--font-secondary);
    font-size: inherit;
    outline: none;
    flex: 1;
    margin-left: 8px;
}

.terminal-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Responsive для терминала */
@media (max-width: 768px) {
    .terminal-container {
        margin: 0 20px;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 14px;
    }
    
    .easter-egg-area {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

/* Advantages Carousel Styles */
.advantages-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid var(--neon-green);
    background: rgba(0, 255, 0, 0.05);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 300px;
}

.advantage-card {
    min-width: 100%;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.card-front {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 255, 0.1));
    border: 1px solid var(--neon-green);
}

.card-back {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    border: 1px solid var(--neon-blue);
    transform: rotateY(180deg);
}

.advantage-card.flipped .card-front {
    transform: rotateY(-180deg);
}

.advantage-card.flipped .card-back {
    transform: rotateY(0deg);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.icon-bracket {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
}

.icon-symbol {
    margin: 0 10px;
    font-size: 2.5rem;
}

.advantage-card h3 {
    color: var(--neon-blue);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--neon-blue);
}

.card-back p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 0 20px;
}

.carousel-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 20px var(--neon-green);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid var(--neon-green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--neon-green);
    box-shadow: 0 0 15px var(--neon-green);
}

.indicator:hover {
    background: rgba(0, 255, 0, 0.6);
    transform: scale(1.2);
}