/* Dark Theme Styles */
body.dark-theme {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: white;
}

/* Root variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1f2937;
    --darker: #111827;
    --light: #f9fafb;
    --gray: #6b7280;
    --light-gray: #9ca3af;
    --border-radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Main content container (для всех страниц кроме главной) */
.content-container {
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

/* Interactive Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.main-nav.scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Fullscreen (только для главной страницы) */
.hero-fullscreen {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

/* Logo styles */
.logo-container {
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible !important;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 3s infinite;
}

.hero-logo {
    width: 500px;
    height: 500px;
    object-fit: contain;
    animation: scale-in 0.8s ease-out forwards;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

/* Animation for logo */
@keyframes scale-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fade-in-text 1s ease-out 2.4s forwards;
}

@keyframes fade-in-text {
    to {
        opacity: 1;
    }
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white; /* Простой белый цвет */
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    opacity: 0.8;
}

/* About Page */
.about-page {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.card-icon i {
    filter: drop-shadow(0 5px 10px rgba(99, 102, 241, 0.3));
}

.role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.bio {
    color: var(--light-gray);
    line-height: 1.8;
}

.education-list,
.experience-list,
.goals-list {
    list-style: none;
    color: var(--light-gray);
    line-height: 2;
}

.education-list li::before,
.experience-list li::before,
.goals-list li::before {
    content: '• ';
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

/* Skills Section */
.skills-section {
    margin-top: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.skill-icon i {
    filter: drop-shadow(0 5px 15px rgba(99, 102, 241, 0.4));
}

.skill-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skill-level {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: var(--level, 0%);
    border-radius: 4px;
    animation: fill-skill 1.5s ease-out forwards;
}

@keyframes fill-skill {
    from {
        width: 0;
    }
    to {
        width: var(--level);
    }
}

/* Projects Page */
.projects-page {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.projects-filter {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.project-placeholder {
    color: white;
    opacity: 0.3;
    font-size: 2.5rem;
}

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: white;
}

.project-desc {
    color: var(--light-gray);
    margin-bottom: 20px;
    line-height: 1.7;
    flex: 1;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.project-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-in-progress {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-planned {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-idea {
    background: rgba(107, 114, 128, 0.2);
    color: var(--gray);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.project-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    width: var(--progress, 0%);
    border-radius: 3px;
    animation: fill-progress 1.5s ease-out forwards;
}

@keyframes fill-progress {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.project-tech span {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.project-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: auto;
}

.project-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.coming-soon-section {
    text-align: center;
    padding: 60px;
    background: rgba(31, 41, 55, 0.3);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon-section i {
    color: var(--primary);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.coming-soon-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.coming-soon-section p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

/* Contact Page */
.contact-page {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.info-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.info-icon {
    margin-bottom: 20px;
    color: var(--primary);
}

.info-card a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.info-card a:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.contact-map {
    margin-top: 40px;
}

.map-placeholder {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 60px;
    text-align: center;
}

.map-placeholder i {
    color: var(--primary);
    margin-bottom: 20px;
}

.map-placeholder p {
    color: var(--light-gray);
}

/* Footer */
.main-footer {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer p {
    color: var(--light-gray);
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: var(--light-gray);
    font-size: 1.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0da271 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 18px 48px;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.95);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .logo-container {
        max-width: 250px;
        height: 250px;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
    }

    .about-grid,
    .skills-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo-container {
        max-width: 200px;
        height: 200px;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
}

.contact-page {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.contact-map {
    display: none;
}

/* Employment and Languages Lists - без маркеров */
.employment-list,
.languages-list {
    color: var(--light-gray);
    line-height: 1.8;
    padding: 0;
    margin: 0;
}

.employment-item,
.language-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.employment-item:last-child,
.language-item:last-child {
    border-bottom: none;
}

.employment-item i,
.language-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.employment-item span,
.language-item span {
    flex: 1;
}
/* Skill Category */
.skill-category {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-category h3 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.skill-category h3 i {
    color: var(--primary);
    font-size: 0.9rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-list li,
    .employment-list li,
    .languages-list li {
        font-size: 0.95rem;
    }
}