* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ffff;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00ffff 0%, #4ecdc4 100%);
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Анимированный фон */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a0a, #1a1a2e, #16213e);
}

#particles {
    width: 100%;
    height: 100%;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.glitch {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--primary-color);
    letter-spacing: 5px;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-2px, 2px);
    }
}

@keyframes glitch-1 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {
    0%, 74%, 76%, 100% {
        transform: translate(0);
    }
    75% {
        transform: translate(-2px, -2px);
    }
}

.subtitle {
    font-size: 2rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--dark-bg);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.code-line {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Заголовки секций */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Услуги */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(26, 26, 46, 0.8));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-stack span {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Статистика */
.stats {
    padding: 80px 0;
    background: var(--darker-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Портфолио с новыми проектами */
.portfolio {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(0, 0, 0, 0.8));
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Уникальные фоны для каждого проекта */
.mylittleempire-bg {
    background: linear-gradient(135deg, #ff006e, #8338ec);
}

.hist-bg {
    background: linear-gradient(135deg, #2d1b69, #11071f);
}

.screenshottool-bg {
    background: linear-gradient(135deg, #06ffa5, #2d5a87);
}

.synapse-bg {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.tickerguard-bg {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.twitchgenie-bg {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 107, 107, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.portfolio-overlay p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tech {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.portfolio-status {
    background: rgba(0, 255, 255, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-content.dashboard {
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Авторизация */
.auth-container {
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.auth-form input::placeholder {
    color: var(--text-gray);
}

.auth-link {
    text-align: center;
    color: var(--text-gray);
    margin-top: 1rem;
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Личный кабинет */
.dashboard-container {
    display: flex;
    height: 100%;
}

.dashboard-sidebar {
    width: 300px;
    background: linear-gradient(145deg, #0a0a0a, #1a1a2e);
    padding: 2rem;
    border-right: 1px solid rgba(0, 255, 255, 0.3);
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--dark-bg);
}

.user-info h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.user-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(0, 255, 255, 0.2);
    color: var(--primary-color);
}

.nav-item.logout {
    margin-top: auto;
    color: var(--secondary-color);
}

.nav-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--secondary-color);
}

.nav-item i {
    margin-right: 1rem;
    width: 20px;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dashboard-section h2 {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dash-stat {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.dash-stat h3 {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.dash-stat .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.recent-activity {
    margin-top: 2rem;
}

.recent-activity h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.activity-item i {
    color: var(--primary-color);
}

.activity-item span {
    flex: 1;
    color: var(--text-light);
}

.activity-item small {
    color: var(--text-gray);
}

/* Проекты в dashboard */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.project-card h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.project-card .status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status.in-progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status.planning {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-danger {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #e74c3c;
    transform: translateY(-2px);
}

/* Сообщения в dashboard */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.message-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.message-item p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.message-item small {
    color: var(--text-gray);
}

/* Настройки в dashboard */
.settings-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-light);
    font-size: 1rem;
}

/* Переключатель */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    color: var(--primary-color);
}

.portfolio-overlay p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tech {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Команда */
.team {
    padding: 100px 0;
    background: var(--dark-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.2);
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--dark-bg);
    position: relative;
    z-index: 1;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.team-member p {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Контакты */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(26, 26, 46, 0.9));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.contact-item p {
    color: var(--text-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-gray);
}

/* Футер */
.footer {
    padding: 2rem 0;
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.footer p {
    color: var(--text-gray);
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0 2rem;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Модальные окна на мобильных */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-content.dashboard {
        width: 98%;
        height: 90vh;
        margin: 2% auto;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        padding: 1rem;
    }
    
    .dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 1rem;
    }
    
    .nav-item {
        min-width: 120px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .nav-item i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dash-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .project-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 0.8rem;
    }
    
    .user-info {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Дополнительные анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Анимации загрузки */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Уведомления */
.message {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.message.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.message.error {
    background: linear-gradient(135deg, #f44336, #da190b);
}

/* Дополнительные стили для форм */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Tooltip стили */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--text-light);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Дополнительные эффекты для карточек */
.card-glow {
    position: relative;
    overflow: hidden;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glow:hover::before {
    opacity: 1;
}

/* Стили для статусов проектов */
.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.status-development {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.status-upcoming {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

/* Эффекты для кнопок */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::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: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}