/* ========================================
   Modern Portfolio Style v2.0
   ======================================== */

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-right: 1rem;
}

.language-switcher .lang-link {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--dark-color);
    transition: var(--transition-fast);
    border: 1px solid transparent;
    background: transparent;
}

.language-switcher .lang-link:hover {
    color: var(--primary-color);
    background: var(--light-color);
}

.language-switcher .lang-link.active {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .language-switcher {
        flex-direction: column;
        gap: 0.25rem;
        margin-right: 0.5rem;
    }
    
    .language-switcher .lang-link {
        font-size: 0.75rem;
        padding: 0.125rem 0.375rem;
    }
}

/* Variables */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #232526 0%, #414345 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Enhanced Main Content */
.main-content {
    margin-top: 80px; /* Offset for fixed navbar */
    min-height: calc(100vh - 160px);
}

/* Hero Variations - Including Main Page */
.hero-section .hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.hero-section .hero-text h1 {
    position: relative;
    display: inline-block;
}

.hero-section .hero-image::after {
    content: '✨';
    position: absolute;
    top: 20%;
    right: 20%;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

/* Additional decorative elements for main page */
.hero-section .hero-image::before {
    content: '💻';
    position: absolute;
    bottom: 15%;
    left: 15%;
    font-size: 1.5rem;
    animation: float 4s ease-in-out infinite reverse;
}

/* Unique decorations for different pages */
.about-hero .hero-image::before {
    content: '👨‍💻';
    position: absolute;
    bottom: 15%;
    left: 15%;
    font-size: 1.8rem;
    animation: float 4s ease-in-out infinite reverse;
}

.contact-hero .hero-image::before {
    content: '📧';
    position: absolute;
    bottom: 15%;
    left: 15%;
    font-size: 1.8rem;
    animation: float 4s ease-in-out infinite reverse;
}

.projects-hero .hero-image::before {
    content: '🚀';
    position: absolute;
    bottom: 15%;
    left: 15%;
    font-size: 1.8rem;
    animation: float 4s ease-in-out infinite reverse;
}

/* Hero Section Enhancements */
.hero-section .hero-buttons .btn i {
    margin-right: 0.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--primary-dark);
}

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

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

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

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

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.profile-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-secondary);
    opacity: 0.5;
    filter: blur(40px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
}

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

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Улучшенные фильтры */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: var(--white);
    border-radius: var(--radius-full);
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn:hover::before {
    transform: scaleX(1);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.filter-btn.active::before {
    transform: scaleX(1);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 520px; /* Фиксированная высота для всех карточек */
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-color);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* Уменьшенная высота изображения */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-info {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    line-height: 1.3;
    /* Ограничиваем заголовок двумя строками */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.3rem;
}

.project-info p {
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
    /* Ограничиваем описание тремя строками */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 2.5rem; /* Фиксированная высота для области тегов */
    align-content: flex-start;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

/* Улучшенные стили для кнопок проектов */
.project-links {
    margin-top: auto; /* Выталкивает кнопки к низу карточки */
    padding-top: 1rem;
}

.project-links .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-links .btn::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;
}

.project-links .btn:hover::before {
    left: 100%;
}

.project-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Дополнительные эффекты для карточек */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.project-card:hover::after {
    opacity: 1;
}

/* View All */
.view-all {
    text-align: center;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f9fafb;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-title {
    color: #6b7280;
}

/* About Image Section */
.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-visual {
    position: relative;
    z-index: 2;
}

.skills-showcase, .studio-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e5e7eb;
}

.skill-item, .highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.skill-item:hover, .highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.skill-item i, .highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-item span, .highlight-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-color);
}
/* Improve readability of highlight tiles in dark theme */
[data-theme="dark"] .highlight-item span { color: #0f172a; }

/* About Shapes */
.about-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.about-shape.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    top: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.about-shape.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-secondary);
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

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

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-details { text-align: center; }

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about,
.footer-links,
.footer-contact {
    animation: fadeInUp 0.6s ease forwards;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-about p {
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition-base);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-down {
    animation: slideDown 0.5s ease forwards;
}

/* Enhanced Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Float Animation for Hero Elements */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.breadcrumbs {
    padding: 1.5rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumbs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6a0dad 0%, #8b5cf6 50%, #6a0dad 100%);
}

.breadcrumbs a {
    color: #6a0dad;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
}

.breadcrumbs a:hover {
    background: rgba(106, 13, 173, 0.1);
    color: #5a0a9d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
    border-color: rgba(106, 13, 173, 0.2);
}

.breadcrumbs a:active {
    transform: translateY(0);
}

.breadcrumbs span {
    color: #ffffff;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    padding: 0.75rem 1.5rem;
    background: #6a0dad;
    border-radius: 8px;
    border: 1px solid #8b5cf6;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
    position: relative;
}

.breadcrumbs span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 8px;
    pointer-events: none;
}

/* Адаптивные стили для хлебных крошек */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 1rem 0;
        font-size: 0.875rem;
        border-radius: 10px;
        margin: 0.75rem 0;
    }
    
    .breadcrumbs a {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
    
    .breadcrumbs span {
        max-width: 200px;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        padding: 0.75rem 0;
        font-size: 0.8rem;
        border-radius: 8px;
        margin: 0.5rem 0;
    }
    
    .breadcrumbs a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .breadcrumbs span {
        max-width: 150px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Дополнительные стили для улучшения видимости */
.breadcrumbs .container {
    position: relative;
    z-index: 1;
}

.breadcrumbs a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 6px;
}

[data-theme="dark"] .breadcrumbs a:focus {
    outline-color: #a78bfa;
}

.project-detail {
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 2rem;
}

.project-header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.project-main-image {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-main-image img,
.zoomable-image {
    width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: var(--transition-base);
}

.zoomable-image:hover {
    transform: scale(1.02);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta i {
    color: var(--primary-color);
}

.project-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.project-content h1, .project-content h2, .project-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-content p {
    margin-bottom: 1rem;
}

.project-content ul, .project-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.project-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.project-gallery {
    margin: 3rem 0;
}

.project-gallery h2 {
    margin-bottom: 2rem;
    text-align: center;
}

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: zoom-in;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #ccc;
}

#modal-caption {
    text-align: center;
    color: var(--white);
    padding: 10px 0;
    font-size: 1.1rem;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Auto Theme Indicator */
.auto-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    font-size: 8px;
    line-height: 8px;
    color: transparent;
    animation: pulse-auto 2s infinite;
    box-shadow: 0 0 0 2px var(--white);
}

@keyframes pulse-auto {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Theme Change Notification */
.theme-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--white);
    color: var(--dark-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 280px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.theme-notification small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.7;
    font-weight: 400;
    font-size: 0.8rem;
}

/* Time-based theme transition effect */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Dark Theme Variables */
:root[data-theme="dark"] {
    --primary-color: #7c3aed;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --dark-color: #f8fafc;
    --light-color: #1e293b;
    --white: #0f172a;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Dark theme specific styles */
[data-theme="dark"] body {
    background-color: var(--white);
    color: var(--text-color);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #334155;
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .theme-toggle {
    background: var(--light-color);
    color: var(--dark-color);
}

[data-theme="dark"] .auto-indicator {
    box-shadow: 0 0 0 2px var(--white);
}

[data-theme="dark"] .theme-notification {
    background: var(--light-color);
    color: var(--dark-color);
    border-color: #334155;
}

[data-theme="dark"] .testimonial-content {
    background: var(--light-color);
    border-color: #334155;
}

[data-theme="dark"] .testimonial-content p {
    color: var(--text-color);
}

[data-theme="dark"] .author-info h4 {
    color: var(--dark-color);
}



/* Дополнительные стили для темной темы */
[data-theme="dark"] .projects-section,
[data-theme="dark"] .about-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .workflow-section,
[data-theme="dark"] .calc-info-section,
[data-theme="dark"] .calculator-section {
    background: var(--light-color);
}

[data-theme="dark"] .project-card {
    background: var(--white);
    border-color: #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    transform: translateY(-8px) scale(1.02);
}

[data-theme="dark"] .project-card::after {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
}

[data-theme="dark"] .project-info h3 {
    color: var(--dark-color);
}

[data-theme="dark"] .project-info p {
    color: var(--text-color);
}

[data-theme="dark"] .tag {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    color: var(--text-color);
    border-color: #475569;
}

[data-theme="dark"] .tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

[data-theme="dark"] .filters {
    background: rgba(15, 23, 42, 0.9);
    border-color: #334155;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .filter-btn {
    background: var(--white);
    color: var(--text-color);
    border-color: #334155;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

[data-theme="dark"] .section-header h2 {
    color: var(--dark-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .section-header p {
    color: var(--text-color);
    opacity: 0.9;
}

[data-theme="dark"] .hero-section h1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: none;
}

[data-theme="dark"] .hero-section p {
    color: var(--text-color);
    opacity: 0.9;
}

[data-theme="dark"] .project-links .btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .project-links .btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
}

[data-theme="dark"] .project-image {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .contact-item {
    background: var(--white);
    border-color: #334155;
}

[data-theme="dark"] .contact-details h3 {
    color: var(--dark-color);
}

[data-theme="dark"] .contact-details a {
    color: var(--text-color);
}

[data-theme="dark"] .contact-details a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .main-footer {
    background: #0f172a;
    border-top-color: #334155;
}

[data-theme="dark"] .footer-about h3,
[data-theme="dark"] .footer-links h3 {
    color: var(--dark-color);
}

[data-theme="dark"] .footer-about p,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-contact a {
    color: var(--text-color);
}

[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .footer-contact a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #334155;
    color: var(--text-light);
}

[data-theme="dark"] .breadcrumbs {
    background: #0f0f23;
    border-bottom-color: #1a1a2e;
    border-radius: 12px;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .breadcrumbs::before {
    background: linear-gradient(90deg, #6a0dad 0%, #8b5cf6 50%, #6a0dad 100%);
}

[data-theme="dark"] .breadcrumbs a {
    color: #a78bfa;
    background: transparent;
}

[data-theme="dark"] .breadcrumbs a:hover {
    background: rgba(106, 13, 173, 0.25);
    color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.4);
    border-color: rgba(106, 13, 173, 0.4);
}

[data-theme="dark"] .breadcrumbs span {
    color: #ffffff;
    background: #6a0dad;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.5);
    font-weight: 600;
}

[data-theme="dark"] .project-detail {
    background: var(--white);
}

[data-theme="dark"] .project-header h1,
[data-theme="dark"] .project-content h1,
[data-theme="dark"] .project-content h2,
[data-theme="dark"] .project-content h3 {
    color: var(--dark-color);
}

[data-theme="dark"] .project-content p {
    color: var(--text-color);
}

[data-theme="dark"] .project-meta span {
    color: var(--text-light);
}

[data-theme="dark"] .gallery-item {
    background: var(--light-color);
    border-color: #334155;
}

[data-theme="dark"] .modal-content {
    background: var(--light-color);
}

[data-theme="dark"] .skill-item {
    background: var(--white);
    border-color: #334155;
}

[data-theme="dark"] .skill-item span {
    color: var(--text-color);
}

[data-theme="dark"] .workflow-content {
    background: var(--white);
    border-color: #334155;
}

[data-theme="dark"] .workflow-content h3 {
    color: var(--dark-color);
}

[data-theme="dark"] .workflow-content p {
    color: var(--text-color);
}

[data-theme="dark"] .workflow-icon {
    background: var(--white);
    border-color: var(--primary-color);
}

/* Стили для калькулятора в темной теме */
[data-theme="dark"] .calc-disclaimer {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

[data-theme="dark"] .info-card {
    background: var(--white);
    border-color: #334155;
}

[data-theme="dark"] .info-card h3 {
    color: var(--dark-color);
}

[data-theme="dark"] .info-card li {
    color: var(--text-color);
}

[data-theme="dark"] .calculator-wrapper {
    background: var(--white);
    border-color: #334155;
}

[data-theme="dark"] .project-option {
    background: var(--light-color);
    border-color: #334155;
    color: var(--text-color);
}

[data-theme="dark"] .project-option:hover {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .project-option input[type="radio"]:checked + .option-content {
    color: var(--primary-color);
}

[data-theme="dark"] .option-content strong {
    color: var(--dark-color);
}

[data-theme="dark"] .option-content em {
    color: var(--text-light);
}

[data-theme="dark"] .option-content small {
    color: var(--text-light);
}

[data-theme="dark"] .project-info-panel {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
    border-color: rgba(124, 58, 237, 0.3);
}

[data-theme="dark"] .project-info-panel.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
    border-color: var(--primary-color);
}

[data-theme="dark"] .info-content h4 {
    color: var(--primary-color);
}

[data-theme="dark"] .info-content p {
    color: var(--text-color);
}

[data-theme="dark"] .feature-item {
    background: rgba(30, 41, 59, 0.8);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .feature-item h5 {
    color: var(--dark-color);
}

[data-theme="dark"] .feature-item p {
    color: var(--text-light);
}

[data-theme="dark"] .stat-item {
    background: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .stat-value {
    color: var(--primary-color);
}

[data-theme="dark"] .stat-label {
    color: var(--text-light);
}

[data-theme="dark"] .feature-option:hover,
[data-theme="dark"] .urgency-option:hover {
    background: rgba(124, 58, 237, 0.1);
}

[data-theme="dark"] .feature-option span,
[data-theme="dark"] .urgency-option span {
    color: var(--text-color);
}

[data-theme="dark"] .result-display {
    background: var(--gradient-primary);
}

[data-theme="dark"] .breakdown div {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .price-disclaimer {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .price-disclaimer i {
    color: #ffc107;
}

/* Стили для админ-панели в темной теме */
[data-theme="dark"] .admin-card {
    background: var(--white);
    border-color: #334155;
}

[data-theme="dark"] .admin-card-header {
    background: var(--light-color);
    border-bottom-color: #334155;
}

[data-theme="dark"] .admin-card-header h1 {
    color: var(--dark-color);
}

[data-theme="dark"] .admin-form input,
[data-theme="dark"] .admin-form textarea,
[data-theme="dark"] .admin-form select {
    background: var(--light-color);
    border-color: #334155;
    color: var(--text-color);
}

[data-theme="dark"] .admin-form label {
    color: var(--dark-color);
}

[data-theme="dark"] .success-message {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-left-color: #10b981;
}

[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left-color: #ef4444;
}

[data-theme="dark"] .btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.nav-menu.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    gap: 1rem;
}

/* Fallbacks for CSS Variables */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* fallback */
    background: var(--gradient-primary);
}

.hero-text h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* fallback */
    background: var(--gradient-primary);
    background-clip: text; /* standard */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
    color: transparent; /* fallback */
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    -ms-text-fill-color: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .skills-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        padding: 1.75rem;
    }
    
    .workflow-content {
        margin: 0 15px;
        padding: 25px;
        padding-top: 110px;
    }
    
    .workflow-step {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .workflow-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        top: 60px;
    }
}

/* Particles Animation */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Workflow Process */
.workflow-section {
    padding: 100px 0;
    background: var(--light-color);
    position: relative;
}

.workflow-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.workflow-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.workflow-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.workflow-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.workflow-content {
    flex: 1;
    background: var(--white);
    padding: 30px;
    padding-top: 120px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 0 30px;
    position: relative;
    animation: slideInFromSide 0.6s ease-out forwards;
    opacity: 0;
}

.workflow-item:nth-child(even) .workflow-content {
    animation: slideInFromSideReverse 0.6s ease-out forwards;
}

.workflow-step {
    position: absolute;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    z-index: 2;
    font-size: 1rem;
    min-width: 50px;
    text-align: center;
}

.workflow-icon {
    position: absolute;
    left: 50%;
    top: 70px;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.workflow-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    padding: 0.3rem 0.8rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes slideInFromSide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromSideReverse {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Interactive Elements */
.interactive-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    position: relative;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.testimonial-item {
    display: none;
    animation: slideInTestimonial 0.5s ease-out;
}

.testimonial-item.active {
    display: block;
}

.testimonial-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.quote-icon {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.testimonial-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.testimonial-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.testimonial-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.testimonial-indicators {
    display: flex;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    cursor: pointer;
    transition: var(--transition-base);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: var(--secondary-color);
}

@keyframes slideInTestimonial {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-controls {
        gap: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Enhanced theme notification for mobile */
    .theme-notification {
        right: 10px;
        top: 90px;
        max-width: calc(100vw - 20px);
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .auto-indicator {
        width: 6px;
        height: 6px;
        top: -1px;
        right: -1px;
    }
    
    .workflow-line {
        display: none;
    }
    
    .workflow-item {
        flex-direction: column;
        margin-bottom: 2rem;
    }
    
    .workflow-item:nth-child(even) {
        flex-direction: column;
        text-align: left;
    }
    
    .workflow-content {
        margin: 0;
        padding: 2rem;
        padding-top: 5rem;
        position: relative;
    }
    
    .workflow-step {
        position: absolute;
        left: 1.5rem;
        top: 1rem;
        transform: none;
        z-index: 3;
    }
    
    .workflow-icon {
        position: absolute;
        left: calc(1.5rem + 70px);
        top: 0.75rem;
        transform: none;
        z-index: 3;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .project-card {
        height: auto; /* Убираем фиксированную высоту на мобильных */
        min-height: 450px;
    }
    
    .project-image {
        height: 180px; /* Меньшая высота изображений на мобильных */
    }
    
    .project-info {
        padding: 1.25rem;
    }
    
    .project-info h3 {
        font-size: 1.25rem;
        min-height: auto; /* Убираем минимальную высоту на мобильных */
        -webkit-line-clamp: 3; /* Больше строк для заголовка на мобильных */
    }
    
    .project-info p {
        min-height: auto; /* Убираем минимальную высоту на мобильных */
        -webkit-line-clamp: 4; /* Больше строк для описания на мобильных */
    }
    
    .project-tags {
        min-height: auto; /* Убираем минимальную высоту для тегов */
    }
    
    .filters {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .contact-container {
        padding: 2rem;
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .skills-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .skill-item {
        padding: 0.75rem;
    }
    
    .skill-item i {
        font-size: 1.5rem;
    }
    
    .skill-item span {
        font-size: 0.75rem;
    }
    
    .testimonial-content {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .testimonial-navigation {
        gap: 1rem;
    }
    
    .testimonial-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    

} 