/* ================================
   Portfolio Design
   ================================ */

:root {
    /* Theme Colors */
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-white: #ffffff;
    --color-accent: #ff6b35;
    --color-accent-hover: #ff5722;
    --color-gray-light: #a0a0a0;
    --color-gray-medium: #707070;
    --color-gray-dark: #404040;
    
    --bg-primary: var(--color-black);
    --bg-secondary: var(--color-dark);
    --text-primary: var(--color-white);
    --text-secondary: var(--color-gray-light);
    --text-muted: var(--color-gray-medium);
    --accent-primary: var(--color-accent);
    --accent-hover: var(--color-accent-hover);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Oswald', 'Space Grotesk', system-ui, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 4rem;
    --text-7xl: 5rem;
    --text-8xl: 6rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
}

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

/* Body */
body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-8);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-12);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: var(--text-primary);
}

p {
    margin: 0;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-primary);
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.btn-accent {
    background: var(--accent-primary);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px) scale(1.05);
}

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-4) 0;
}

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

.navbar .nav-menu {
    margin-left: auto;
}

.nav-brand {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: lowercase;
}

.nav-controls {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}


/* Weather Widget - скрыт на всех платформах */
.weather-widget {
    display: none !important;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--transition-base);
    cursor: pointer;
}

.weather-widget:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.weather-icon {
    font-size: var(--text-lg);
    line-height: 1;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.weather-temp {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.weather-city {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* Language Toggle Button */
.language-toggle {
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    user-select: none;
    -webkit-user-select: none;
    margin-left: var(--space-4);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.language-toggle:active {
    transform: scale(0.95);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text-primary);
}

.nav-separator {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0 var(--space-1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Modal Window - Portfolio Style */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    width: 100%;
    border-radius: 8px;
}

.app-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.2s ease;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

/* App Modal Content - Portfolio Style */
.app-modal-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.app-modal-header {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-modal-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-modal-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.app-modal-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.app-modal-status {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 4px;
    width: fit-content;
    margin-top: 4px;
}

.app-modal-status[data-status="available"] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-modal-status[data-status="coming-soon"] {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-modal-status[data-status="in-development"] {
    color: var(--accent-primary);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.app-modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.app-modal-description p {
    margin: 0;
    margin-bottom: 0.75rem;
}

.app-modal-description p:last-of-type {
    margin-bottom: 0.5rem;
}

.app-modal-description ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

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

.app-modal-description li:last-child {
    margin-bottom: 0;
}

.app-modal-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-modal-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0;
}

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

.app-modal-tag {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.app-modal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.app-modal-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.app-modal-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.app-modal-stat-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.app-modal-links {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon-badge {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
    line-height: 0;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    display: block;
    width: 120px;
    height: 40px;
}

.app-store-badge .app-store-badge-dark,
.app-store-badge .app-store-badge-light {
    display: none;
}

/* Всегда показываем темную кнопку App Store (темная тема по умолчанию) */
.app-store-badge .app-store-badge-dark {
    display: block !important;
}

.app-store-badge .app-store-badge-light {
    display: none !important;
}

[data-theme="dark"] .app-store-badge .app-store-badge-dark,
:not([data-theme]) .app-store-badge .app-store-badge-dark {
    display: block !important;
}

[data-theme="dark"] .app-store-badge .app-store-badge-light,
:not([data-theme]) .app-store-badge .app-store-badge-light {
    display: none !important;
}

/* Section Navigation Dots - скрыты в новом дизайне */
.section-dots {
    display: none;
}
/* ================================
   Portfolio Components - All Sections
   ================================ */

/* ================================
   Hero Section
   ================================ */

.hero-portfolio {
    min-height: 100vh;
    padding: var(--space-32) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 40px 40px, 35px 35px, 45px 45px;
    background-position: 0 0, 20px 20px, 10px 10px;
    opacity: 0.4;
    animation: patternMove 30s linear infinite;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 70%);
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: calc(100vh - 160px);
    gap: var(--space-16);
}

.hero-main-content {
    display: flex;
    align-items: flex-start;
    padding-top: var(--space-20);
}

.hero-title-section {
    width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 0.9;
    margin: 0;
    letter-spacing: -0.02em;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-title-primary {
    font-size: clamp(3.5rem, 10vw, 12rem);
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.hero-title-secondary-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: -0.1em;
}

.hero-title-secondary {
    font-size: clamp(3rem, 8vw, 10rem);
    font-weight: 700;
    color: var(--text-muted);
    display: block;
}

.hero-subtitle-inline {
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-weight: 400;
    white-space: normal;
    margin-left: var(--space-4);
}

.hero-description {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    max-width: 500px;
}

.hero-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: flex-end;
    padding-top: var(--space-16);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-bottom-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero-tagline {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
}

.hero-explore {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
    width: fit-content;
}

.hero-explore:hover {
    color: var(--accent-primary);
    gap: var(--space-3);
}

.hero-arrow {
    font-size: var(--text-base);
    transition: transform var(--transition-base);
}

.hero-explore:hover .hero-arrow {
    transform: translateY(4px);
}

.hero-bottom-right {
    display: flex;
    justify-content: flex-end;
}

/* ================================
   About Section
   ================================ */

.about-portfolio {
    padding: var(--space-32) 0;
    background: var(--bg-primary);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.about-header {
    position: sticky;
    top: var(--space-20);
}

.about-label {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.about-description {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.about-cta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-primary);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-label {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.stat-value {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

/* ================================
   Featured Work Section
   ================================ */

.projects-portfolio {
    padding: var(--space-32) 0;
    background: var(--bg-primary);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-16);
}

.projects-label {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.projects-cta {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.project-card-portfolio {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.project-card-portfolio:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-card-portfolio.featured {
    border-color: rgba(255, 255, 255, 0.12);
}

.project-card-portfolio.featured:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image-wrapper {
    width: 100%;
    min-height: 280px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Градиентные фоны для каждого проекта */
.project-card-portfolio[data-app="floralia"] .project-image-wrapper {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(255, 179, 209, 0.05));
}

.project-card-portfolio[data-app="weather"] .project-image-wrapper {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(135, 206, 235, 0.05));
}

.project-card-portfolio[data-app="homie"] .project-image-wrapper {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 140, 66, 0.05));
}

.project-card-portfolio[data-app="checklist"] .project-image-wrapper {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(162, 155, 254, 0.05));
}

.project-card-portfolio[data-app="classfunds"] .project-image-wrapper {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.08), rgba(85, 239, 196, 0.05));
}

/* Hover эффекты для градиентов */
.project-card-portfolio[data-app="floralia"]:hover .project-image-wrapper {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(255, 179, 209, 0.08));
}

.project-card-portfolio[data-app="weather"]:hover .project-image-wrapper {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(135, 206, 235, 0.08));
}

.project-card-portfolio[data-app="homie"]:hover .project-image-wrapper {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 140, 66, 0.08));
}

.project-card-portfolio[data-app="checklist"]:hover .project-image-wrapper {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(162, 155, 254, 0.08));
}

.project-card-portfolio[data-app="classfunds"]:hover .project-image-wrapper {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.12), rgba(85, 239, 196, 0.08));
}

.project-image-wrapper img {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    border-radius: 22%; /* Скругление по стандарту App Store */
    overflow: hidden;
    /* Легкая полупрозрачная обводка для плавного вписывания */
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: -1px;
}

/* Специфичные тени для каждого проекта */
.project-card-portfolio[data-app="floralia"] .project-image-wrapper img {
    filter: drop-shadow(0 8px 24px rgba(255, 107, 157, 0.2));
    border-radius: 22%; /* Скругление App Store */
}

.project-card-portfolio[data-app="weather"] .project-image-wrapper img {
    filter: drop-shadow(0 8px 24px rgba(74, 144, 226, 0.2));
    border-radius: 22%; /* Скругление App Store */
}

.project-card-portfolio[data-app="homie"] .project-image-wrapper img {
    filter: drop-shadow(0 8px 24px rgba(255, 107, 53, 0.2));
    border-radius: 22%; /* Скругление App Store */
}

.project-card-portfolio[data-app="checklist"] .project-image-wrapper img {
    filter: drop-shadow(0 8px 24px rgba(108, 92, 231, 0.2));
    border-radius: 22%; /* Скругление App Store */
}

.project-card-portfolio[data-app="classfunds"] .project-image-wrapper img {
    filter: drop-shadow(0 8px 24px rgba(0, 184, 148, 0.2));
    border-radius: 22%; /* Скругление App Store */
}

/* Hover эффекты для иконок */
.project-card-portfolio:hover .project-image-wrapper img {
    transform: scale(1.08);
}

.project-card-portfolio[data-app="floralia"]:hover .project-image-wrapper img {
    filter: drop-shadow(0 12px 32px rgba(255, 107, 157, 0.25));
}

.project-card-portfolio[data-app="weather"]:hover .project-image-wrapper img {
    filter: drop-shadow(0 12px 32px rgba(74, 144, 226, 0.25));
}

.project-card-portfolio[data-app="homie"]:hover .project-image-wrapper img {
    filter: drop-shadow(0 12px 32px rgba(255, 107, 53, 0.25));
}

.project-card-portfolio[data-app="checklist"]:hover .project-image-wrapper img {
    filter: drop-shadow(0 12px 32px rgba(108, 92, 231, 0.25));
}

.project-card-portfolio[data-app="classfunds"]:hover .project-image-wrapper img {
    filter: drop-shadow(0 12px 32px rgba(0, 184, 148, 0.25));
}

/* Специальные эффекты для featured карточки */
.project-card-portfolio.featured .project-image-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card-portfolio.featured[data-app="floralia"] .project-image-wrapper {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12), rgba(255, 179, 209, 0.08));
    border-color: rgba(255, 107, 157, 0.15);
}

.project-card-portfolio.featured:hover .project-image-wrapper {
    border-color: rgba(255, 255, 255, 0.1);
}

.project-content-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.project-status {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-status[data-status="available"] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-status[data-status="coming-soon"] {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-status[data-status="in-development"] {
    color: var(--accent-primary);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.project-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    font-weight: 400;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.project-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-year {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Расположение карточек: узкая-широкая, затем широкая-узкая */
.project-card-portfolio:nth-child(1) {
    grid-column: span 1; /* Узкая */
}

.project-card-portfolio:nth-child(2) {
    grid-column: span 2; /* Широкая */
}

.project-card-portfolio:nth-child(3) {
    grid-column: span 2; /* Широкая */
}

.project-card-portfolio:nth-child(4) {
    grid-column: span 1; /* Узкая */
}

.project-card-portfolio:nth-child(5) {
    grid-column: span 1; /* Узкая */
}

/* ================================
   Footer Section
   ================================ */

.footer-portfolio {
    padding: var(--space-32) 0 var(--space-16);
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer-brand {
    max-width: 400px;
}

.footer-brand-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer-brand-description {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.footer-column-title {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-social-link:hover {
    color: var(--text-primary);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ================================
   Responsive Styles
   ================================ */

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .about-header {
        position: static;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card-portfolio:nth-child(1),
    .project-card-portfolio:nth-child(2),
    .project-card-portfolio:nth-child(3),
    .project-card-portfolio:nth-child(4),
    .project-card-portfolio:nth-child(5) {
        grid-column: span 1;
    }
    
    .hero-bottom-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-bottom-right {
        order: -1;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    /* Weather widget скрыт на всех платформах */
    .weather-widget {
        display: none !important;
    }
    
    .weather-city {
        max-width: 80px;
    }
    
    .language-toggle {
        margin-left: var(--space-2);
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-toggle {
        display: flex;
        order: 4;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        padding: var(--space-4);
        gap: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: var(--space-3) var(--space-4);
        width: 100%;
    }
    
    /* Hero Section */
    .hero-portfolio {
        min-height: auto;
        padding: var(--space-20) 0 var(--space-12);
    }
    
    .hero-container {
        min-height: auto;
        gap: var(--space-12);
    }
    
    .hero-main-content {
        padding-top: var(--space-8);
    }
    
    .hero-title-secondary-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
        margin-top: 0;
    }
    
    .hero-subtitle-inline {
        margin-left: 0;
        margin-top: var(--space-2);
        font-size: var(--text-sm);
    }
    
    .hero-bottom-section {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding-top: var(--space-12);
    }
    
    .hero-bottom-right {
        order: -1;
        justify-content: flex-start;
    }
    
    .hero-description {
        font-size: var(--text-sm);
        max-width: 100%;
        line-height: 1.6;
    }
    
    .hero-tagline {
        font-size: var(--text-xs);
    }
    
    .hero-explore {
        font-size: var(--text-xs);
    }
    
    /* About Section */
    .about-portfolio {
        padding: var(--space-20) 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .stat-card {
        padding: var(--space-6);
    }
    
    /* Projects Section - горизонтальный скролл мини-карточек */
    .projects-portfolio {
        padding: var(--space-20) 0;
    }
    
    .projects-header {
        margin-bottom: var(--space-6);
    }
    
    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-4);
        padding: var(--space-2) 0 var(--space-4);
        margin: 0 calc(var(--space-6) * -1);
        padding-left: var(--space-6);
        padding-right: var(--space-6);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: relative;
    }
    
    .projects-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Визуальная подсказка для скролла (градиент справа) */
    .projects-grid::after {
        content: '';
        position: sticky;
        right: 0;
        top: 0;
        bottom: var(--space-4);
        width: 40px;
        background: linear-gradient(to left, var(--bg-primary), transparent);
        pointer-events: none;
        z-index: 1;
        float: right;
    }
    
    .project-card-portfolio {
        flex: 0 0 auto;
        width: 160px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        padding: 0;
        transition: transform 0.15s ease, opacity 0.15s ease;
        cursor: pointer;
    }
    
    /* Тактильный фидбек при нажатии */
    .project-card-portfolio:active {
        transform: scale(0.96);
        opacity: 0.8;
    }
    
    /* Компактная мини-карточка */
    .project-image-wrapper {
        height: 160px !important;
        padding: 24px !important;
        min-height: 160px !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .project-image-wrapper img {
        max-width: 100px !important;
        border-radius: 22%;
    }
    
    .project-content-wrapper {
        padding: var(--space-3) !important;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .project-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: var(--space-2) !important;
        margin-bottom: 0;
    }
    
    .project-title {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        line-height: 1.2;
    }
    
    .project-status {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
        white-space: nowrap;
    }
    
    .project-subtitle {
        font-size: 0.75rem !important;
        margin: 0 !important;
        color: var(--text-muted);
    }
    
    /* Скрываем теги и год в мини-версии */
    .project-tags {
        display: none;
    }
    
    .project-footer,
    .project-year {
        display: none;
    }
    
    /* Experience Section */
    .experience-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .experience-title {
        font-size: 1.5rem;
    }
    
    .experience-date {
        font-size: 0.875rem;
    }
    
    .experience-content h3 {
        font-size: 1.25rem;
    }
    
    .experience-content p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    /* App Modal */
    .app-modal {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .app-modal .modal-content {
        margin: 0;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        width: 100%;
    }
    
    .app-modal-content {
        padding: 40px 30px;
        gap: 30px;
    }
    
    .app-modal-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .app-modal-icon {
        width: 60px;
        height: 60px;
    }
    
    .app-modal-title {
        font-size: 1.5rem;
    }
    
    .app-modal-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Footer */
    .footer-portfolio {
        padding: var(--space-20) 0 var(--space-12);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* ================================
   Legal Pages - Portfolio Style
   ================================ */

.legal-page {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: var(--space-32);
    background: var(--bg-primary);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: var(--space-16);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-header {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-family: var(--font-display);
}

.legal-updated {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 400;
}

.legal-content h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    font-family: var(--font-display);
}

.legal-content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
}

.legal-content ul,
.legal-content ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
    padding-left: var(--space-8);
}

.legal-content li {
    margin-bottom: var(--space-3);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-content a:hover {
    color: var(--text-primary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent-primary);
    text-decoration: none;
    margin-bottom: var(--space-8);
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-link:hover {
    gap: var(--space-3);
    color: var(--text-primary);
}

.warning-box {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    margin: var(--space-8) 0;
}

.warning-box h3 {
    margin-top: 0;
    color: #FF9500;
}

.contact-box {
    background: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-md);
    margin-top: var(--space-12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-box h3 {
    margin-top: 0;
    color: var(--text-primary);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
        padding-bottom: var(--space-20);
    }
    
    .legal-content {
        padding: var(--space-12);
        margin: 0 var(--space-4);
    }
    
    .legal-header {
        margin-bottom: var(--space-8);
    }
    
    .legal-content h2 {
        font-size: var(--text-xl);
        margin-top: var(--space-8);
    }
    
    .legal-content h3 {
        font-size: var(--text-lg);
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: var(--space-6);
    }
    
    .warning-box,
    .contact-box {
        padding: var(--space-4);
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding-top: 80px;
        padding-bottom: var(--space-16);
    }
    
    .legal-content {
        padding: var(--space-8);
        margin: 0 var(--space-3);
    }
    
    .legal-title {
        font-size: var(--text-2xl);
    }
    
    .back-link {
        font-size: var(--text-xs);
    }
}

/* ================================
   Portfolio Style Overrides
   ================================ */

/* Основные цвета для темной темы */
[data-theme="dark"],
:not([data-theme]) {
    --bg-primary: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --text-muted: #707070;
    --accent-primary: #FF6B35;
    --accent-hover: #FF5722;
}

/* Явные стили для кнопок в темной теме */
[data-theme="dark"] .btn-primary,
:not([data-theme]) .btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

[data-theme="dark"] .btn-primary:hover,
:not([data-theme]) .btn-primary:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-accent,
:not([data-theme]) .btn-accent {
    background: var(--accent-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-accent:hover,
:not([data-theme]) .btn-accent:hover {
    background: var(--accent-hover);
    color: var(--text-primary);
}


/* Навигация по картинке */
.nav-menu {
    gap: 20px;
    margin-left: auto;
}

/* Кнопка переключения языка рядом с меню */
.navbar .language-toggle {
    margin-left: var(--space-4);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
    width: 100%;
}

.nav-separator {
    color: var(--text-muted);
    opacity: 0.3;
}

/* Фиксированная высота навбара */
.navbar {
    padding: 20px 0;
    height: 80px;
}

/* Weather widget скрыт на всех платформах - правило уже применено в базовом стиле */

/* nav-toggle должен быть виден на мобильных устройствах */
@media (min-width: 769px) {
    .nav-toggle {
        display: none !important;
    }
}

/* Кнопка переключения языка всегда видна и кликабельна */
.language-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.language-toggle:active {
    transform: scale(0.95);
}

/* Профессиональный опыт (Professional Experience) */
.professional-experience {
    padding: 80px 0;
    background: var(--bg-primary);
}

.experience-header {
    margin-bottom: 60px;
}

.experience-title {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.experience-date {
    min-width: 120px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.experience-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.experience-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Адаптивность */


@media (max-width: 480px) {
    .hero-portfolio {
        padding: var(--space-16) 0 var(--space-8);
    }
    
    .hero-subtitle-inline {
        font-size: var(--text-xs);
    }
    
    .hero-description {
        font-size: var(--text-xs);
        line-height: 1.5;
    }
    
    .hero-tagline {
        font-size: 0.7rem;
    }
    
    .hero-explore {
        font-size: 0.7rem;
    }
}

/* ================================
   App Cards
   ================================ */

.app-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.app-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* Убираем hover эффекты на мобильных */
@media (hover: hover) and (pointer: fine) {
    .app-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.12);
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    
    .app-card:hover::before {
        left: 100%;
    }
    
    .app-card:hover .app-card-icon {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }
}

/* Эффект блеска при наведении */
.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    transition: left 0.7s ease;
    z-index: 1;
}

.app-card-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.app-card-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: all 0.3s ease;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.app-card-text {
    flex: 1;
}

.app-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.app-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.app-card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    pointer-events: auto;
}

.badge-available,
.badge-in-development {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

.badge-available {
    color: #30D158;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.badge-in-development {
    color: #FF9F0A;
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.2);
}

.app-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    position: relative;
    z-index: 2;
}

.app-card-footer .app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    line-height: 0;
}

.app-card-footer .app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-card-footer .app-store-badge img {
    display: block;
    width: 120px;
    height: 40px;
}

.app-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.1);
    width: fit-content;
}

.app-card-link:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
}

.app-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.app-card-link:hover svg {
    transform: translateX(2px);
}

.app-card-link.disabled {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    cursor: default;
}

.app-card-link.disabled:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    transform: none;
    box-shadow: none;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .app-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
        margin-top: 24px;
    }
    
    .app-card {
        padding: 20px 16px;
        min-height: auto;
        border-radius: 14px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        position: relative;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    /* Оверлей для разделения прокрутки и тапов */
    .app-card-mobile-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        pointer-events: none;
    }
    
    .app-card-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 16px;
        pointer-events: auto;
        position: relative;
        z-index: 2;
    }
    
    .app-card-icon {
        width: 60px;
        height: 60px;
        padding: 12px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
    }
    
    .app-card-text {
        flex: 1;
        min-width: 0; /* Для правильного переноса текста */
    }
    
    .app-card-title {
        font-size: 1.125rem;
        margin-bottom: 6px;
    }
    
    .app-card-description {
        font-size: 0.8125rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .app-card-badge {
        position: static;
        margin-top: 4px;
        pointer-events: auto;
    }
    
    .badge-available,
    .badge-in-development {
        font-size: 0.6875rem;
        padding: 3px 8px;
        border-radius: 10px;
    }
    
    .app-card-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 14px;
        pointer-events: auto;
        position: relative;
        z-index: 2;
    }
    
    .app-card-footer .app-store-badge {
        display: inline-block;
        transition: transform 0.2s ease, opacity 0.2s ease;
        line-height: 0;
    }
    
    .app-card-footer .app-store-badge:active {
        transform: scale(0.95);
        opacity: 0.9;
    }
    
    .app-card-footer .app-store-badge img {
        display: block;
        width: 100px;
        height: 33px;
    }
    
    .app-card-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.8125rem;
        padding: 8px 12px;
        border-radius: 8px;
        background: rgba(255, 107, 53, 0.08);
        border: 1px solid rgba(255, 107, 53, 0.12);
        width: 100%;
        justify-content: center;
        text-align: center;
        transition: all 0.2s ease;
    }
    
    .app-card-link.disabled {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.5);
    }
    
    /* Активация кнопки при нажатии */
    .app-card-link:active {
        transform: scale(0.98);
        background: rgba(255, 107, 53, 0.12);
    }
    
    .app-card-link.disabled:active {
        background: rgba(255, 255, 255, 0.06);
        transform: none;
    }
    
    /* Эффект нажатия для всей карточки */
    .app-card:active:not(:has(.app-card-link:active)) {
        background: rgba(255, 255, 255, 0.03);
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 360px) {
    .app-card {
        padding: 16px 12px;
    }
    
    .app-card-icon {
        width: 52px;
        height: 52px;
        padding: 10px;
    }
    
    .app-card-title {
        font-size: 1rem;
    }
    
    .app-card-description {
        font-size: 0.75rem;
    }
}

/* Темная тема по умолчанию */
[data-theme="dark"] .app-card,
:not([data-theme]) .app-card {
    background: linear-gradient(145deg, #1A1A1A, #161616);
}

[data-theme="dark"] .app-card:hover,
:not([data-theme]) .app-card:hover {
    background: linear-gradient(145deg, #1F1F1F, #1A1A1A);
}

/* Дополнительные эффекты для каждой карточки */
.app-card[data-app="floralia"] .app-card-link {
    background: rgba(255, 107, 157, 0.05);
    border-color: rgba(255, 107, 157, 0.1);
}

.app-card[data-app="floralia"] .app-card-link:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.2);
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.1);
}

.app-card[data-app="weather"] .app-card-link {
    background: rgba(74, 144, 226, 0.05);
    border-color: rgba(74, 144, 226, 0.1);
}

.app-card[data-app="weather"] .app-card-link:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.2);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.1);
}

.app-card[data-app="homie"] .app-card-link {
    background: rgba(255, 107, 53, 0.05);
    border-color: rgba(255, 107, 53, 0.1);
}

.app-card[data-app="homie"] .app-card-link:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
}

.app-card[data-app="checklist"] .app-card-link {
    background: rgba(108, 92, 231, 0.05);
    border-color: rgba(108, 92, 231, 0.1);
}

.app-card[data-app="checklist"] .app-card-link:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.1);
}

.app-card[data-app="classfunds"] .app-card-link {
    background: rgba(0, 184, 148, 0.05);
    border-color: rgba(0, 184, 148, 0.1);
}

.app-card[data-app="classfunds"] .app-card-link:hover {
    background: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.2);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.1);
}

/* ================================
   App Modal Window
   ================================ */

/* Блокировка прокрутки body при открытом модальном окне */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
}

html.modal-open {
    overflow: hidden !important;
}

.app-modal-detailed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

.app-modal-detailed.active {
    display: flex;
    opacity: 1;
}

.app-modal-detailed-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.app-modal-detailed-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-modal-detailed-content {
    background: linear-gradient(145deg, #1A1A1A, #161616);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    animation: appModalSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

@keyframes appModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.app-modal-detailed-header {
    position: sticky;
    top: 0;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.app-modal-detailed-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    display: block;
    color: var(--text-primary);
}

.app-modal-detailed-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.app-modal-detailed-close:active {
    transform: scale(0.95);
}

.app-modal-detailed-body {
    padding: 24px;
}

.app-modal-detailed-app-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-modal-detailed-app-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    flex-shrink: 0;
}

.app-modal-detailed-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.app-modal-detailed-app-info {
    flex: 1;
}

.app-modal-detailed-app-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.app-modal-detailed-app-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.app-modal-detailed-app-status-badge {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
}

.app-modal-detailed-app-status-badge.available {
    color: #30D158;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.app-modal-detailed-app-status-badge.in-development {
    color: #FF9F0A;
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.2);
}

.app-modal-detailed-app-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.app-modal-detailed-app-features {
    margin-bottom: 24px;
}

.app-modal-detailed-app-features h3,
.app-modal-detailed-app-technologies h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.app-modal-detailed-app-features ul {
    list-style: none;
    padding: 0;
}

.app-modal-detailed-app-features li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.app-modal-detailed-app-features li:before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
}

.app-modal-detailed-app-technologies {
    margin-bottom: 24px;
}

.app-modal-detailed-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-modal-detailed-tech-tag {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-modal-detailed-app-store-link {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-modal-detailed-app-store-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.app-modal-detailed-app-store-link a:hover {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.app-modal-detailed-app-store-link a.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.app-modal-detailed-app-store-link a.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.05);
}

/* Мобильная версия модального окна */
@media (max-width: 768px) {
    .app-modal-detailed-container {
        padding: 10px;
        align-items: flex-end;
    }
    
    .app-modal-detailed-content {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        animation: appModalSlideUpMobile 0.3s ease;
    }
    
    @keyframes appModalSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .app-modal-detailed-header {
        padding: 16px;
    }
    
    .app-modal-detailed-body {
        padding: 20px 16px;
    }
    
    .app-modal-detailed-app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .app-modal-detailed-app-icon {
        width: 70px;
        height: 70px;
    }
    
    .app-modal-detailed-app-title {
        font-size: 1.75rem;
    }
    
    .app-modal-detailed-app-description {
        font-size: 0.9375rem;
    }
    
    .app-modal-detailed-app-features h3,
    .app-modal-detailed-app-technologies h3 {
        font-size: 1.125rem;
    }
}


