:root {
    --primary: #1abc9c;
    --primary-dark: #16a085;
    --primary-light: #2ecc71;
    --secondary: #34495e;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-dark: #2c3e50;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-heading: 'Play', sans-serif;
    --font-body: 'Roboto', sans-serif;
    /* Spacing */
    --spacing: 1rem;
    --spacing-sm: 0.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --section-padding: 5rem;
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #1abc9c 0%, #2ecc71 100%);
    --gradient-hero: linear-gradient(135deg, #1a1c2e 0%, #2c3e50 50%, #34495e 100%);
    --gradient-card: linear-gradient(135deg, rgba(26, 188, 156, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
    /* Свечение */
    --glow-primary: 0 0 40px rgba(26, 188, 156, 0.3);
    --glow-strong: 0 0 60px rgba(26, 188, 156, 0.5);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

main {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

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

p {
    margin-bottom: 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    overflow: hidden;
    position: relative;
}

.section {
    padding: var(--section-padding) 0;
}

/* Section Title - Modernized */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.5);
    color: white;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    /*box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);*/
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /*background: rgba(255, 255, 255, 0.8);*/
    background: #fff;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(26, 188, 156, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(26, 188, 156, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header .container {
    overflow: unset;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing) 0;
    gap: 2rem;
    transition: padding 0.3s ease;
}

.header.scrolled .header-inner {
    padding: 0.625rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

/* Nav Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.925rem;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(26, 188, 156, 0.1);
}

.nav-link .fa-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .fa-chevron-down,
.dropdown-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 260px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(26, 188, 156, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
    padding: 0.625rem;
    list-style: none;
    margin: 0;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.has-dropdown:hover .dropdown,
.dropdown-toggle[aria-expanded="true"] + .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    margin: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    transition: var(--transition);
    font-size: 0.9rem;
    border-radius: var(--radius);
    position: relative;
}

.dropdown-link i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 188, 156, 0.08);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.dropdown-link:hover {
    color: var(--primary);
    background: rgba(26, 188, 156, 0.06);
}

.dropdown-link:hover i {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.4);
    color: white;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: relative;
}

.mobile-toggle:hover {
    background: rgba(26, 188, 156, 0.1);
    color: var(--primary);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
    background: white;
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
    background: white;
}

/* Mobile Overlay - Fullscreen Dark */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}



/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(26, 188, 156, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 85%; top: 15%; animation-delay: 3s; animation-duration: 20s; }
.particle:nth-child(6) { left: 40%; top: 80%; animation-delay: 5s; animation-duration: 13s; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -50px) scale(1.5); opacity: 0.8; }
    50% { transform: translate(-20px, -100px) scale(1); opacity: 0.4; }
    75% { transform: translate(40px, -60px) scale(1.8); opacity: 0.6; }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow--1 {
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.12) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow--2 {
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.08) 0%, transparent 70%);
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(26, 188, 156, 0.15);
    border: 1px solid rgba(26, 188, 156, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero-title {
    font-size: 3.25rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 520px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta i {
    transition: transform 0.3s ease;
    margin-top: 3px;
}

.hero-cta:hover i {
    transform: translateX(4px);
}

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

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual — Code Editor */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-code {
    background: rgba(15, 15, 25, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 188, 156, 0.2);
    /*box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(26, 188, 156, 0.1);*/
    overflow: hidden;
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-code:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot--red { background: #ff5f57; }
.code-dot--yellow { background: #ffbd2e; }
.code-dot--green { background: #28c840; }

.code-title {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-family: monospace;
}

.code-body {
    display: flex;
    padding: 1.25rem;
    gap: 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-lines {
    display: flex;
    flex-direction: column;
    counter-reset: line;
    margin: 0;
    padding: 0;
}

.code-lines span {
    display: block;
    width: 24px;
    text-align: right;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    line-height: 1.8;
    user-select: none;
}

.code-lines span:nth-child(1)::before { content: '1'; }
.code-lines span:nth-child(2)::before { content: '2'; }
.code-lines span:nth-child(3)::before { content: '3'; }
.code-lines span:nth-child(4)::before { content: '4'; }
.code-lines span:nth-child(5)::before { content: '5'; }
.code-lines span:nth-child(6)::before { content: '6'; }
.code-lines span:nth-child(7)::before { content: '7'; }
.code-lines span:nth-child(8)::before { content: '8'; }
.code-lines span:nth-child(9)::before { content: '9'; }
.code-lines span:nth-child(10)::before { content: '10'; }
.code-lines span:nth-child(11)::before { content: '11'; }
.code-lines span:nth-child(12)::before { content: '12'; }

.code-content {
    display: flex;
    flex-direction: column;
}

.code-content code {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre;
}

.code-tag { color: #e06c75; }
.code-var { color: #e5c07b; }
.code-fn { color: #61afef; }
.code-class { color: #56b6c2; }
.code-str { color: #98c379; }
.code-num { color: #d19a66; }
.code-comment { color: rgba(255, 255, 255, 0.3); font-style: italic; }
.code-keyword { color: #c678dd; }

/* Float Cards */
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-float-card i {
    color: var(--primary-light);
}

.hero-float-card--1 {
    top: -12px;
    right: -16px;
    animation: floatCard 4s ease-in-out infinite;
}

.hero-float-card--2 {
    bottom: 40px;
    left: -32px;
    animation: floatCard 5s ease-in-out infinite reverse;
}

/* ================================
PORTFOLIO DETAILS - MODERN GALLERY
=============================== */

/* Portfolio Hero */
.portfolio-hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	padding-top: 100px;
	overflow: hidden;
}

/* Minimal Hero Variant (≤25vh) */
.portfolio-hero--minimal {
	min-height: 25vh;
	padding-top: 120px;
	padding-bottom: 2rem;
}

.portfolio-hero--minimal .portfolio-hero-content {
	padding-top: 0;
}

.portfolio-hero-content--minimal {
	padding-bottom: 1rem;
}

.portfolio-hero-title--minimal {
	font-size: 2.75rem !important;
	margin-bottom: 1.5rem !important;
}

.portfolio-hero-subtitle--minimal {
	font-size: 1.1rem !important;
	margin-bottom: 1.25rem !important;
	max-width: 550px;
}

.portfolio-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.portfolio-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 25, 0.85) 0%,
        rgba(15, 15, 25, 0.7) 50%,
        rgba(26, 188, 156, 0.4) 100%
    );
    z-index: 1;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.portfolio-hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #1abc9c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 650px;
}

.portfolio-hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

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

.meta-item a {
    color: rgba(255, 255, 255, 0.7);
}

.meta-item a:hover {
    color: var(--primary);
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    animation: bounce 2s ease-in-out infinite;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Gallery Section */
.portfolio-gallery-section {
    padding: 6rem 0;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.portfolio-gallery-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.gallery-item:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.gallery-item--featured {
    grid-column: span 2;
    grid-row: span 2;
}

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

.gallery-item:hover {
    transform: translateY(-8px);
    /*box-shadow: 0 20px 60px rgba(26, 188, 156, 0.2);*/
    outline: none;
    border: none;
}

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

.gallery-overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(
  to top,
  rgba(44, 62, 80, 0.7) 0%,
  rgba(44, 62, 80, 0.3) 60%,
  rgba(44, 62, 80, 0) 100%
 );
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 align-items: center;
 padding: 2rem;
 opacity: 0;
 transition: all 0.4s ease;
 pointer-events: none;
}

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

.gallery-label {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.gallery-item i {
    color: var(--primary);
    font-size: 1.25rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.gallery-item:hover i {
    transform: translateY(0);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-image-container {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 1.5rem 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-prev {
    left: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Lightbox Mobile Optimizations */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-image-container {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
    }
    
    .lightbox-prev {
        left: 10px;
        transform: translateY(-50%);
    }
    
    .lightbox-next {
        right: 10px;
        transform: translateY(-50%);
    }
    
    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover {
        transform: translateY(-50%) scale(1);
    }
    
    .lightbox-close:hover {
        transform: scale(1);
    }
    
    .lightbox-counter {
        bottom: 10px;
        background: rgba(0, 0, 0, 0.6);
        padding: 0.25rem 0.75rem;
        border-radius: 50px;
    }
}

/* Project Info Section */
.portfolio-info {
    padding: 6rem 0;
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.info-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.info-content .lead {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(26, 188, 156, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.1);
}

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

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-stack-card,
.stats-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(26, 188, 156, 0.1);
}

.tech-stack-card h3,
.stats-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-stack-card .tech-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

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

.stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 188, 156, 0.08);
    transition: all 0.3s ease;
}

.stat:hover {
    border-color: rgba(26, 188, 156, 0.2);
    box-shadow: 0 8px 24px rgba(26, 188, 156, 0.1);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Timeline Section */
.portfolio-timeline {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.portfolio-timeline .section-title {
    margin-bottom: 4rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary) 20%,
        var(--primary) 80%,
        transparent
    );
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    right: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.2);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
    right: auto;
}

.timeline-content {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 188, 156, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.12);
    transform: translateY(-4px);
    border-color: rgba(26, 188, 156, 0.2);
}

.timeline-date {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Testimonial Section */
.portfolio-testimonial {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.portfolio-testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 188, 156, 0.3), transparent);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(26, 188, 156, 0.3);
    box-shadow: 0 30px 80px rgba(26, 188, 156, 0.15);
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.testimonial-stars i {
    color: #f1c40f;
    font-size: 1.1rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    justify-content: center;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}

.testimonial-name {
    color: white;
    font-size: 1.1rem;
}

.testimonial-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Navigation */
.portfolio-nav {
    padding: 4rem 0;
    background: white;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-link-prev,
.nav-link-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    padding: 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 188, 156, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link-next {
    align-items: flex-end;
    text-align: right;
}

.nav-link-prev:hover,
.nav-link-next:hover {
    background: var(--gradient-primary);
    color: white;
    /*transform: translateY(-6px);*/
    /*box-shadow: 0 20px 50px rgba(26, 188, 156, 0.25);*/
    border-color: transparent;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.nav-link-next .nav-label {
    justify-content: flex-end;
}

.nav-link-prev:hover .nav-label,
.nav-link-next:hover .nav-label {
    color: white;
}

.nav-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.nav-link-prev:hover .nav-title,
.nav-link-next:hover .nav-title {
    color: white;
}

/* CTA Section */
.portfolio-cta {
    padding: 6rem 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.portfolio-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

.cta-box {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-box .btn {
    font-size: 1.1rem;
    padding: 1.125rem 2.5rem;
}

/* Section Header (text-center) */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(26, 188, 156, 0.15);
    border: 1px solid rgba(26, 188, 156, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }
    
    .gallery-item--featured {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .portfolio-hero-title {
        font-size: 3rem;
    }
    
    .portfolio-hero--minimal {
        min-height: 20vh;
        padding-top: 100px;
    }
    
    .portfolio-hero-title--minimal {
        font-size: 2.25rem !important;
    }
}
    
@media (max-width: 768px) {
    .portfolio-hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-hero-meta {
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 12px !important;
        right: auto !important;
    }
    
    .portfolio-timeline .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .portfolio-hero--minimal {
        min-height: 18vh;
        padding-top: 90px;
    }
    
    .portfolio-hero-title--minimal {
        font-size: 2rem !important;
    }
    
    .portfolio-hero-subtitle--minimal {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-title {
        font-size: 2rem;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(15, 15, 25, 0.95) 0%,
            rgba(15, 15, 25, 0.6) 100%
        );
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
}

/* Services */
.services {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231abc9c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: rgba(26, 188, 156, 0.1);
    border: 1px solid rgba(26, 188, 156, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.services-header .section-title {
    margin-bottom: 0.75rem;
}

.services-header .section-subtitle {
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 188, 156, 0.08);
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 4px 0;
}

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

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.2);
}

.service-card-num {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(26, 188, 156, 0.06);
    line-height: 1;
    transition: color 0.4s ease;
    user-select: none;
}

.service-card:hover .service-card-num {
    color: rgba(26, 188, 156, 0.12);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 188, 156, 0.08);
    border-radius: var(--radius);
    font-size: 1.5rem;
    color: var(--primary);
    /*transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(26, 188, 156, 0.35);
}

.service-card-body {
    position: relative;
    z-index: 1;
    padding-top: 0.25rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.service-desc {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

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

.service-link:hover i {
    transform: translateX(4px);
}

/* About - Modernized */
.about {
    background: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

/* Изображение слева */
.about-image {
    position: relative;
    order: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: 25px;
    bottom: 25px;
    border: 3px solid rgba(26, 188, 156, 0.2);
    border-radius: var(--radius-lg);
    z-index: -1;
    transition: var(--transition);
}

.about-image:hover::before {
    top: -35px;
    left: -35px;
    right: 35px;
    bottom: 35px;
    border-color: rgba(26, 188, 156, 0.4);
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 30px 80px rgba(26, 188, 156, 0.25);
}

/* Текст справа */
.about-content {
    order: 2;
}

.about-content h2 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.25rem;
}

.about-content > p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    margin: 2rem 0 2.5rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(26, 188, 156, 0.1);
    transition: var(--transition);
}

.about-list li:hover {
    padding-left: 10px;
    border-bottom-color: rgba(26, 188, 156, 0.3);
}

.about-list li i {
    color: var(--primary);
    font-size: 1.25rem;
    background: rgba(26, 188, 156, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition);
}

.about-list li:hover i {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.about-list li span {
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
}

/* Portfolio */
.portfolio {
    background: white;
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.portfolio-header-left {
    flex-shrink: 0;
}

.portfolio-header-left .section-subtitle {
    margin-bottom: 0;
}

.portfolio-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    opacity: 1;
}

.filter-btn.active {
    border-color: transparent;
    color: white;
}

.filter-btn.active:hover {
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(26, 188, 156, 0.06);
}

.portfolio-item--featured {
    grid-row: span 2;
    aspect-ratio: auto;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 188, 156, 0.15);
    border-color: rgba(26, 188, 156, 0.2);
}

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

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 15, 25, 0.95) 0%,
        rgba(15, 15, 25, 0.6) 50%,
        rgba(15, 15, 25, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(10px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(26, 188, 156, 0.2);
    border: 1px solid rgba(26, 188, 156, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.portfolio-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.portfolio-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-light);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    width: fit-content;
}

.portfolio-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    color: white;
}

.portfolio-link:hover i {
    transform: translateX(4px);
}

.portfolio-view-all {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.portfolio-btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.portfolio-btn i {
    transition: transform 0.3s ease;
}

.portfolio-btn:hover i {
    transform: translateX(4px);
}

/* Why Us - Modernized with glassmorphism */
.whyus {
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.whyus::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

.whyus .section-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.whyus .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.whyus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.whyus-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.whyus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.whyus-card:hover::before {
    opacity: 1;
}

.whyus-card:hover {
    transform: translateY(-8px);
    border-color: rgba(26, 188, 156, 0.4);
    box-shadow: 0 20px 60px rgba(26, 188, 156, 0.2);
}

.whyus-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.whyus-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 188, 156, 0.15);
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: var(--transition);
}

.whyus-card:hover .whyus-icon-wrap {
    background: var(--gradient-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(26, 188, 156, 0.35);
}

.whyus-icon {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.whyus-card:hover .whyus-icon {
    -webkit-text-fill-color: white;
    transform: scale(1.1);
}

.whyus-title {
    font-size: 1.25rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.whyus-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Steps - Modernized Horizontal */
.steps {
    background: white;
    position: relative;
    overflow: hidden;
}

.steps::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Соединительная линия между шагами */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(26, 188, 156, 0.2) 0%, 
        var(--primary) 25%, 
        var(--primary) 75%, 
        rgba(26, 188, 156, 0.2) 100%);
    z-index: 0;
}

/* Стрелки между шагами */
.step-card {
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
    z-index: 1;
}

.step-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: 45px;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    z-index: 2;
}

.step-number {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(26, 188, 156, 0.4);
    transition: var(--transition);
    animation: pulse 3s ease-in-out infinite;
}

.step-number::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(26, 188, 156, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

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

.step-number:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 50px rgba(26, 188, 156, 0.6);
    animation: none;
}

.step-number:hover::after {
    animation: none;
}

.step-card:nth-child(1) .step-number { animation-delay: 0s; }
.step-card:nth-child(2) .step-number { animation-delay: 0.75s; }
.step-card:nth-child(3) .step-number { animation-delay: 1.5s; }
.step-card:nth-child(4) .step-number { animation-delay: 2.25s; }

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

.step-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

/* CTA - Modernized */
.cta {
    background: linear-gradient(135deg, #1a1c2e 0%, #2c3e50 50%, #16a085 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

.cta .section-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.cta .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    /*box-shadow: 0 0 20px rgba(26, 188, 156, 0.3);*/
    /*transform: translateY(-2px);*/
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select option {
    color: var(--text);
    background: white;
}

.form-textarea {
    min-height: 130px;
    resize: vertical;
}

.btn-submit {
    margin-top: 0.5rem;
    justify-content: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Testimonials */
.testimonials {
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 188, 156, 0.3), transparent);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.testimonials-header .section-title {
    color: white;
    -webkit-text-fill-color: white;
    background: none;
}

.testimonials-header .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.testimonials-slider {
    position: relative;
    z-index: 1;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 380px;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(26, 188, 156, 0.3);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1.25rem;
}

.testimonial-stars i {
    color: #f1c40f;
    font-size: 0.8rem;
}

.testimonial-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.125rem;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonials-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.testimonials-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(26, 188, 156, 0.3);
}

.testimonials-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.testimonials-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.testimonials-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

.testimonials-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f1119 0%, #1a1c2e 50%, #1e2a3a 100%);
    color: white;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(26, 188, 156, 0.5), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-about .logo {
    color: white;
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-links li i {
    color: var(--primary);
    width: 18px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3);
    border-color: transparent;
}

/* Powered by MODX Badge */
.footer-powered {
    margin-top: 1.5rem;
}

.powered-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: rgba(26, 188, 156, 0.08);
    border: 1px solid rgba(26, 188, 156, 0.15);
    border-radius: var(--radius);
    transition: var(--transition);
}

.powered-badge:hover {
    background: rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.3);
}

.powered-badge i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.powered-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.powered-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.powered-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    transition: var(--transition);
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

/* Floating Label Field */
.form-field {
    position: relative;
}

.form-field .form-input,
.form-field .form-textarea {
    width: 100%;
    /*padding: 1.25rem 1rem 0.5rem;*/
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-field .form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-field .form-input:focus,
.form-field .form-textarea:focus {
    border-color: var(--primary);
    /*box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);*/
}

.form-field .form-input.invalid,
.form-field .form-textarea.invalid {
    border-color: #e74c3c;
    /*box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.08);*/
}

.form-field .form-input.valid,
.form-field .form-textarea.valid {
    border-color: var(--primary);
}

.form-float-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 0 0.375rem;
    line-height: 1;
}

.form-field--textarea .form-float-label {
    top: 1.25rem;
    transform: translateY(0);
}

.form-field .form-input:focus + .form-float-label,
.form-field .form-input:not(:placeholder-shown) + .form-float-label,
.form-field .form-textarea:focus + .form-float-label,
.form-field .form-textarea:not(:placeholder-shown) + .form-float-label {
    top: 0 !important;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.form-field .form-input.invalid + .form-float-label {
    color: #e74c3c;
    top:35%;
}

.form-field .form-textarea.invalid+.form-float-label {
    color: #e74c3c;
    top: 10%;
}

.form-error {
    display: block;
    min-height: 0;
    font-size: 0.75rem;
    color: #e74c3c;
    margin-top: 0.375rem;
    padding-left: 0.25rem;
    transition: var(--transition);
}

.form-error:empty {
    margin-top: 0;
}

.modal-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.modal-submit i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.modal-submit:hover i {
    transform: translateX(4px);
}

/* Form Messages (in modal) */

/* Password Toggle */
.form-field--password {
    position: relative;
}

.form-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.9rem;
    transition: var(--transition);
    z-index: 1;
}

.form-password-toggle:hover {
    color: var(--primary);
}

.form-field--password .form-input {
    padding-right: 3rem;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    user-select: none;
}

.form-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form-checkbox-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 1px;
}

.form-checkbox-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.form-checkbox input:checked + .form-checkbox-mark {
    border-color: var(--primary);
}

.form-checkbox input:checked + .form-checkbox-mark::after {
    opacity: 1;
    transform: scale(1);
}

.form-checkbox input:focus-visible + .form-checkbox-mark {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.form-checkbox-text a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-checkbox-text a:hover {
    color: var(--primary-dark);
}

.form-checkbox.invalid .form-checkbox-mark {
    border-color: #e74c3c;
}

.form-checkbox.invalid .form-checkbox-text {
    color: #e74c3c;
}

/* Login Links */
.login-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.login-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: var(--transition);
}

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

.modal-form .form-messages {
    margin-top: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: none;
    transition: opacity 0.3s ease;
    text-align: center;
}

.modal-form .form-messages.show {
    display: block;
}

.modal-form .form-messages.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.modal-form .form-messages.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Scroll Top - Modernized */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(26, 188, 156, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.6);
}

.scroll-top i {
    font-size: 1.25rem;
    transition: var(--transition);
}

.scroll-top:hover i {
    transform: translateY(-3px);
}

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

    .hero-grid {
        gap: 2.5rem;
    }

    .hero-code {
        transform: none;
    }

    .hero-float-card--1 {
        right: 0;
    }

    .hero-float-card--2 {
        left: 0;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .steps-grid::before {
        display: none;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

    .about-grid {
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .section {
        padding: 3rem 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-overlay {
        display: none;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(135deg, rgba(15, 15, 25, 0.98) 0%, rgba(26, 28, 46, 0.98) 50%, rgba(44, 62, 80, 0.98) 100%);
        flex-direction: column;
        justify-content: left;
        align-items: center;
        padding: 2rem;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: none;
    }

    .nav-wrapper.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-wrapper::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -30%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(26, 188, 156, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        animation: float 8s ease-in-out infinite;
    }

    .nav-wrapper::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -20%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        animation: float 10s ease-in-out infinite reverse;
    }

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

    .nav {
        width: 100%;
        max-width: 400px;
        position: relative;
        z-index: 1;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-item i { 
        display: none;
    }

    .nav-item.has-dropdown ul {
        display: none;
    }

    .nav-wrapper.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-wrapper.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-wrapper.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-wrapper.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-wrapper.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-wrapper.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .nav-wrapper.active .nav-item:nth-child(6) { transition-delay: 0.35s; }

    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: center;
        font-size: 1.125rem;
        font-weight: 500;
        border-radius: var(--radius-lg);
        color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: var(--transition);
    }

    .nav-link:hover,
    .nav-link.active {
        color: white;
        background: rgba(26, 188, 156, 0.15);
        border-color: rgba(26, 188, 156, 0.3);
        transform: scale(1.02);
    }

    .nav-link .fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .dropdown-toggle[aria-expanded="true"] .fa-chevron-down {
        transform: rotate(180deg);
    }

    .has-dropdown {
        position: relative;
    }

    .has-dropdown .dropdown {
        position: static;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        padding: 0;
        background: rgba(26, 188, 156, 0.08);
        border: 1px solid rgba(26, 188, 156, 0.15);
        border-radius: var(--radius-lg);
        min-width: auto;
        margin-top: 0.5rem;
        max-height: 0;
        overflow: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .has-dropdown .dropdown.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 500px;
    }

    .dropdown li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown li:last-child {
        border-bottom: none;
    }

    .dropdown-link {
        padding: 0.875rem 1.25rem;
        border-radius: 0;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        transition: var(--transition);
    }

    .dropdown-link:hover {
        color: white;
        background: rgba(26, 188, 156, 0.15);
        padding-left: 1.5rem;
    }

    .dropdown-link i {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        background: rgba(26, 188, 156, 0.15);
        color: var(--primary-light);
        border-radius: var(--radius-sm);
    }

    .dropdown-link:hover i {
        background: var(--gradient-primary);
        color: white;
    }

    .login-btn {
        width: 100%;
        max-width: 400px;
        justify-content: center;
        margin-top: 2rem;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: var(--radius-lg);
        opacity: 0;
        transform: translateY(20px);
        position: relative;
        z-index: 1;
        transition: opacity 0.3s ease 0.4s, transform 0.3s ease 0.4s, background 0.3s ease, box-shadow 0.3s ease;
    }

    .nav-wrapper.active .login-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .hero {
        padding-top: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        margin: 0 auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-code {
        transform: none;
    }

    .hero-float-card--1 {
        right: 0;
    }

    .hero-float-card--2 {
        left: 0;
    }

    .service-card {
        flex-direction: column;
        gap: 1.25rem;
    }

    .service-card-num {
        font-size: 2.5rem;
    }

    .service-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        order: -1;
        max-width: 100%;
    }

    .about-content {
        order: 1;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }


    .step-card {
        padding: 1.5rem;
        background: var(--bg-alt);
        border-radius: var(--radius-lg);
        border: 1px solid rgba(26, 188, 156, 0.1);
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .portfolio-filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
        justify-content: flex-start;
        width: 100%;
        flex-wrap: nowrap;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-item--featured {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-nav,
    .footer-services {
        display: none;
    }

    .footer-about {
        text-align: center;
    }

    .footer-about .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .footer-powered {
        display: flex;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .hero-float-card {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item--featured {
        grid-row: span 1;
        aspect-ratio: 4/3;
    }

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
        padding: 1.5rem;
    }
    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }
    .hero-visual {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .step-number,
    .whyus-card::before,
    .hero-glow--1,
    .hero-glow--2,
    .hero-float-card--1,
    .hero-float-card--2,
    .particle,
    .cta::before,
    .cta::after,
    .about::before,
    .steps::before,
    .testimonials::before,
    .services::before,
    .portfolio::before,
    .whyus::after {
        animation: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Blog Hero */
.blog-hero {
    background: var(--gradient-hero);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.blog-breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.blog-breadcrumb a:hover {
    color: var(--primary-light);
}

.blog-breadcrumb span {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.875rem;
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.blog-hero-title {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.blog-hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 700px;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.blog-hero-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

/* Blog Layout */
.blog-page {
    padding: 3rem 0 5rem;
    background: var(--bg-alt);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
    overflow: hidden;
    position: relative;
}

/* Blog Cards */
.blog-articles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 188, 156, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.1);
    border-color: rgba(26, 188, 156, 0.2);
}

.blog-card--featured {
    flex-direction: column;
}

.blog-card-image {
    flex-shrink: 0;
    width: 240px;
    min-height: 180px;
    overflow: hidden;
}

.blog-card--featured .blog-card-image {
    width: 100%;
    min-height: 260px;
    max-height: 300px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: contain;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card--no-image {
    border-left: 3px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.blog-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card--featured .blog-card-body {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.blog-card-category a {
    display: inline-block;
    padding: 0.2rem 0.625rem;
    background: rgba(26, 188, 156, 0.08);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-card-category a:hover {
    background: rgba(26, 188, 156, 0.15);
}

.blog-card-date {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.blog-card-date i {
    font-size: 0.7rem;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.blog-card--featured .blog-card-title {
    font-size: 1.5rem;
}

.blog-card-title a {
    color: var(--secondary);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: auto;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg-alt);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: var(--transition);
}

.blog-tag:hover {
    color: var(--primary);
    background: rgba(26, 188, 156, 0.08);
}

.blog-card-stats {
    display: flex;
    gap: 0.875rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.blog-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card-stats i {
    font-size: 0.7rem;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.blog-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    /*font-size: 0.875rem;
    font-weight: 500;*/
    transition: var(--transition);
    text-decoration: none;
}

.blog-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-page-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.blog-page-next {
    gap: 0.475rem;
}

.blog-page-next i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.blog-page-next:hover i {
    transform: translateX(3px);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    /*top: 100px;*/
}

.sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 188, 156, 0.08);
}

.sidebar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 0.375rem;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-list a i {
    font-size: 0.55rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

.sidebar-list a:hover {
    color: var(--primary);
    background: rgba(26, 188, 156, 0.06);
    padding-left: 0.75rem;
}

.sidebar-list a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Sidebar CTA */
.sidebar-cta {
    background: var(--gradient-hero);
    border: none;
    text-align: center;
    color: white;
    padding: 2rem 1.5rem;
}

.sidebar-cta-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.sidebar-cta-title {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 0.5rem;
}

.sidebar-cta-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
}

.sidebar-cta-btn {
    width: 100%;
    justify-content: center;
    border-radius: 50px;
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .blog-card-image {
        width: 200px;
        min-height: 150px;
    }
    
    .portfolio-gallery .swiper-slide {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 7rem 0 2rem;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        width: 100%;
        min-height: 180px;
        max-height: 220px;
    }

    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .portfolio-gallery .swiper-slide {
        height: 250px;
    }
    
    .portfolio-gallery .swiper-button-prev,
    .portfolio-gallery .swiper-button-next {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }
    
    .portfolio-gallery .swiper-button-prev::after,
    .portfolio-gallery .swiper-button-next::after {
        font-size: 1rem;
    }
    
    .portfolio-gallery {
        touch-action: pan-y;
    }
}

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

    .blog-card-body {
        padding: 1.25rem;
    }

    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    
    .portfolio-gallery .swiper-slide {
        height: 200px;
    }
    
    .portfolio-gallery .swiper-button-prev,
    .portfolio-gallery .swiper-button-next {
        width: 32px;
        height: 32px;
    }
    
    .portfolio-gallery .swiper-button-prev::after,
    .portfolio-gallery .swiper-button-next::after {
        font-size: 0.875rem;
    }
}

/* Contacts Page */
.contacts-hero {
    background: var(--gradient-hero);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.contacts-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contacts-hero-title {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.contacts-hero-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 550px;
    position: relative;
    z-index: 1;
}

.contacts-page {
    padding: 3rem 0 4rem;
    background: var(--bg-alt);
}

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

/* Contact Info Cards */
.contacts-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 188, 156, 0.08);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: rgba(26, 188, 156, 0.2);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.08);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 188, 156, 0.08);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-info-card:hover .contact-info-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.contact-info-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    display: block;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
    text-decoration: none;
}

a.contact-info-value:hover {
    color: var(--primary);
}

.contact-info-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Messengers */
.contacts-messengers-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contacts-messengers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.messenger-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.25rem 0.75rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(26, 188, 156, 0.08);
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.messenger-card i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.messenger-card:hover {
    border-color: rgba(26, 188, 156, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.1);
}

.messenger-card:hover i {
    transform: scale(1.15);
}

.messenger-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.9rem;
}

.messenger-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact Form */
.contacts-form-wrap {
    /*position: sticky;
    top: 100px;*/
}

.contacts-form-card {
    background: white;
    /*padding: 2.5rem;*/
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 188, 156, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.contacts-form-title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contacts-form-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.success-desc-hidden.hidden {
    display: none;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contacts-form.hidden .form-field, .contacts-form.hidden button {
    display: none;
}

.modal-form.hidden .form-field,
.modal-form.hidden button {
    display: none;
}

.contacts-form .form-messages {
    display: none;
}

.contacts-form.hidden .form-messages {
    display: block;
}

.contacts-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    /*margin-top: 0.5rem;*/
}

.contacts-submit i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.contacts-submit:hover i {
    transform: translateX(4px);
}

.contacts-form .form-messages {
    margin-top: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.contacts-form .form-messages.show {
    opacity: 1;
}

.contacts-form .form-messages.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.contacts-form .form-messages.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Map */
.contacts-map {
    position: relative;
}

.contacts-map-wrap {
    position: relative;
    height: 450px;
}

.contacts-map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.3) contrast(1.1);
    transition: filter 0.4s ease;
}

.contacts-map-wrap:hover iframe {
    filter: grayscale(0) contrast(1);
}

.contacts-map-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 10;
}

.contacts-map-badge {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(26, 188, 156, 0.15);
}

.contacts-map-badge i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.contacts-map-badge strong {
    display: block;
    color: var(--secondary);
    font-size: 0.95rem;
}

.contacts-map-badge span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

    .contacts-form-wrap {
        position: static;
    }
}

@media (max-width: 768px) {
    .contacts-hero {
        padding: 7rem 0 2rem;
    }

    .contacts-hero-title {
        font-size: 2rem;
    }

    .contacts-messengers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-form-card {
        padding: 1.75rem;
    }

    .contacts-map-wrap {
        height: 350px;
    }

    .contacts-map-overlay {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
}

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

    .contacts-messengers-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-form-card {
        padding: 1.5rem;
    }

    .contacts-map-wrap {
        height: 280px;
    }
}

/* Blog Post */
.post-hero {
    background: var(--gradient-hero);
    padding: 8rem 0 2rem;
}

.post-page {
    padding: 2rem 0 4rem;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.post-meta-date,
.post-meta-author,
.post-meta-views,
.post-meta-comments {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.post-meta-date i,
.post-meta-author i,
.post-meta-views i,
.post-meta-comments i {
    font-size: 0.75rem;
}

.post-title {
    font-size: 2.25rem;
    color: var(--secondary);
    line-height: 1.25;
}

/* Post Main */
.post-main {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(26, 188, 156, 0.08);
    overflow: hidden;
    width: 100%;
}

/* Post Content */
.post-content {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.85;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(26, 188, 156, 0.15);
}

.post-content h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin: 2rem 0 0.75rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.375rem;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-content code:not([class*="language-"]) {
    background: rgba(26, 188, 156, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-family: 'Courier New', monospace;
}

.post-content strong {
    color: var(--secondary);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(26, 188, 156, 0.1);
}

.post-content thead {
    background: var(--gradient-primary);
}

.post-content th {
    padding: 0.875rem 1.125rem;
    color: white;
    font-weight: 600;
    text-align: left;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-content td {
    padding: 0.75rem 1.125rem;
    border-bottom: 1px solid rgba(26, 188, 156, 0.06);
    color: var(--text);
}

.post-content tbody tr {
    transition: background 0.2s ease;
}

.post-content tbody tr:nth-child(even) {
    background: rgba(26, 188, 156, 0.03);
}

.post-content tbody tr:hover {
    background: rgba(26, 188, 156, 0.07);
}

.post-content tbody tr:last-child td {
    border-bottom: none;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--gradient-card);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    position: relative;
}

.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: 0.75rem;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.post-content blockquote p {
    margin-bottom: 0.75rem;
    font-style: italic;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content cite {
    display: block;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-content ul li::marker {
    color: var(--primary);
}

.post-content ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-content blockquote {
        padding: 1.25rem 1.5rem;
    }
}

.post-image {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(26, 188, 156, 0.08);
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Code Blocks */
.code-block {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a2e;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block-lang {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-light);
    opacity: 0.7;
}

.code-block-copy {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.code-block-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.code-block-copy.copied {
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.4);
}

.code-block-copy i {
    font-size: 0.75rem;
}

.code-block pre {
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.7 !important;
    overflow-x: auto;
}

.code-block code {
    background: none !important;
    padding: 0 !important;
    font-size: 0.85rem !important;
    color: inherit !important;
    border-radius: 0 !important;
}

/* Override Prism theme inside code-block */
.code-block code[class*="language-"],
.code-block pre[class*="language-"] {
    text-shadow: none;
}

/* Post Footer */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tags > i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-share-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.post-share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-light);
    transition: var(--transition);
    font-size: 0.9rem;
}

.post-share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.post-nav-link:hover {
    border-color: var(--primary);
    background: rgba(26, 188, 156, 0.03);
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

.post-nav-title {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
    line-height: 1.4;
}

.post-nav-link:hover .post-nav-title {
    color: var(--primary);
}

/* Comments */
.post-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 188, 156, 0.1);
}

.post-comments-title {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-comments-title i {
    color: var(--primary);
}

.comments-count {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.comments-list {
    list-style: none;
    padding: 0;
}

.comments-list--child {
    margin-top: 0.75rem;
    padding-left: 2.5rem;
    border-left: 2px solid rgba(26, 188, 156, 0.1);
}

.comment-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.875rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comment-item--author .comment-avatar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

.comment-author-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(26, 188, 156, 0.1);
    color: var(--primary);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.sidebar-active {
    color: var(--primary) !important;
    font-weight: 600;
    background: rgba(26, 188, 156, 0.06);
}

/* Comment Form */
.comment-form-wrap {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.comment-form-title {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.comment-submit {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
}

.comment-submit i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.comment-submit:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .comment-submit {
        align-self: stretch;
        justify-content: center;
    }
}

/* Post Responsive */
@media (max-width: 1024px) {
    .post-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 7rem 0 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        gap: 0.625rem;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }

    .code-block pre {
        font-size: 0.8rem !important;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Portfolio Page */
.pf-hero {
    background: var(--gradient-hero);
    padding: 8rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.pf-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pf-hero-title {
    font-size: 2.75rem;
    color: white;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.pf-hero-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    max-width: 550px;
    position: relative;
    z-index: 1;
}

/* Stats Bar */
.pf-stats {
    background: white;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.pf-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.pf-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.pf-stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filters */
.pf-page {
    padding: 3rem 0 5rem;
    background: var(--bg-alt);
}

.pf-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.pf-filter {
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.pf-filter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pf-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pf-filter:hover::before,
.pf-filter.active::before {
    opacity: 1;
}

.pf-filter.active {
    border-color: transparent;
    color: white;
    background: var(--gradient-primary);
}

.pf-filter.active:hover {
    color: white;
    background: var(--gradient-primary);
}

/* Portfolio Grid */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Portfolio Card */
.pf-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(26, 188, 156, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-card--featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.1);
    border-color: rgba(26, 188, 156, 0.2);
}

.pf-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.pf-card--featured .pf-card-image {
    aspect-ratio: auto;
}

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

.pf-card:hover .pf-card-image img {
    transform: scale(1.05);
}

.pf-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 50px;
}

.pf-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.pf-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pf-card-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(26, 188, 156, 0.08);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pf-card-year {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.pf-card-title {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pf-card--featured .pf-card-title {
    font-size: 1.4rem;
}

.pf-card-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.pf-card-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.pf-tech {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--bg-alt);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
}

.pf-card-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pf-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.pf-card-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.pf-card-link:hover {
    color: var(--primary-dark);
}

.pf-card-link:hover i {
    transform: translateX(4px);
}

/* Portfolio CTA */
.pf-cta {
    margin-top: 3rem;
}

.pf-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    color: white;
}

.pf-cta-text h3 {
    font-size: 1.375rem;
    color: white;
    margin-bottom: 0.375rem;
}

.pf-cta-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.pf-cta .btn {
    flex-shrink: 0;
}

/* Portfolio Hidden Cards */
.pf-card--hidden {
    display: none;
}

.pf-card--hidden.pf-card--visible {
    display: block;
    animation: pfCardFadeIn 0.5s ease forwards;
}

.pf-card--featured.pf-card--hidden.pf-card--visible {
    display: grid;
}

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

/* Load More */
.pf-loadmore {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.pf-loadmore-btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.pf-loadmore-btn:disabled {
    display: none;
}

.pf-loadmore-btn i {
    transition: transform 0.3s ease;
}

.pf-loadmore-btn:hover i {
    transform: translateY(3px);
}

.pf-loadmore-btn.hidden {
    display: none;
}

/* Portfolio Page Responsive */
@media (max-width: 1024px) {
    .pf-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-card--featured {
        grid-column: span 2;
    }

    .pf-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pf-hero {
        padding: 7rem 0 2rem;
    }

    .pf-hero-title {
        font-size: 2rem;
    }

    .pf-grid {
        grid-template-columns: 1fr;
    }

    .pf-card--featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .pf-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .pf-filters {
        overflow-x: auto;
        /*flex-wrap: nowrap;*/
        padding-bottom: 0.5rem;
    }
}

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

    .pf-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pf-stat-number {
        font-size: 1.75rem;
    }

    .pf-card-body {
        padding: 1.25rem;
    }
}

/* Checkbox Styles */
.form-checkbox-group {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.form-field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    /*margin-bottom: 0.75rem;*/
}

.form-field--checkbox:last-child {
    margin-bottom: 0;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    appearance: checkbox;
}

.form-checkbox:hover {
    border-color: var(--primary);
}

.form-checkbox:focus {
    outline: none;
    /*box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);*/
}

.form-checkbox:checked {
    /*background-color: var(--primary);*/
    border-color: var(--primary);
}

.form-checkbox-label {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.form-checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-checkbox-label a:hover {
    color: var(--primary-dark);
}

.form-field--checkbox .form-error {
    display: block;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    font-size: 0.8rem;
    color: #e74c3c;
}

/* Mobile Checkbox Responsive */
@media (max-width: 768px) {
    .form-field--checkbox {
        gap: 0.625rem;
    }

    .form-checkbox {
        width: 16px;
        height: 16px;
    }

    .form-checkbox-label {
        font-size: 0.8rem;
    }
}

.checkbox-wrapper-30 .checkbox {
    --bg: #fff;
    --brdr: #d1d6ee;
    --brdr-actv: var(--primary);
    --brdr-hovr: #bbc1e1;
    --dur: calc((var(--size, 2)/2) * 0.6s);
    display: inline-block;
    width: calc(var(--size, 1) * 22px);
    position: relative;
    color: var(--primary);
}

.checkbox-wrapper-30 .checkbox:after {
    content: "";
    width: 100%;
    padding-top: 100%;
    display: block;
}

.checkbox-wrapper-30 .checkbox>* {
    position: absolute;
}

.checkbox-wrapper-30 .checkbox input {
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    background-color: var(--bg);
    border-radius: calc(var(--size, 1) * 4px);
    border: calc(var(--newBrdr, var(--size, 1)) * 1px) solid;
    color: var(--newBrdrClr, var(--brdr));
    outline: none;
    margin: 0;
    padding: 0;
    transition: all calc(var(--dur) / 3) linear;
}

.checkbox-wrapper-30 .checkbox input:hover,
.checkbox-wrapper-30 .checkbox input:checked {
    --newBrdr: calc(var(--size, 1) * 2);
}

.checkbox-wrapper-30 .checkbox input:hover {
    --newBrdrClr: var(--brdr-hovr);
}

.checkbox-wrapper-30 .checkbox input:checked {
    --newBrdrClr: var(--brdr-actv);
    transition-delay: calc(var(--dur) /1.3);
}

.checkbox-wrapper-30 .checkbox input:checked+svg {
    --dashArray: 16 93;
    --dashOffset: 109;
}

.checkbox-wrapper-30 .checkbox svg {
    fill: none;
    left: 0;
    pointer-events: none;
    stroke: var(--stroke, var(--border-active));
    stroke-dasharray: var(--dashArray, 93);
    stroke-dashoffset: var(--dashOffset, 94);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2px;
    top: 0;
    transition: stroke-dasharray var(--dur), stroke-dashoffset var(--dur);
}

.checkbox-wrapper-30 .checkbox svg,
.checkbox-wrapper-30 .checkbox input {
    display: block;
    height: 100%;
    width: 100%;
}

/* Стили для страницы деталей портфолио */
.details-hero {
    background: linear-gradient(135deg, #1a3a8f 0%, #0d1b4d 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.details-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../assets/tpl/modxdevpro/img/backgrounds/facts-bg.jpg') center/cover;
    opacity: 0.1;
}

.project-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-label {
    font-size: 14px;
    opacity: 0.7;
}

.meta-value {
    font-size: 18px;
    font-weight: 600;
}

.gallery-swiper {
    margin: 40px 0;
}

.gallery-slide {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.tech-badge {
    background: rgba(26, 188, 156, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(26, 188, 156, 0.2);
    transition: var(--transition);
}

.tech-badge:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.tech-badge.modx {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Project Section */
.project-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(26, 188, 156, 0.08);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(26, 188, 156, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(26, 188, 156, 0.4);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

.feature-desc {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(26, 188, 156, 0.2) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 80px;
    overflow: hidden;
}

.timeline-dot {
    position: absolute;
    left: 24px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.3);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 5px rgba(26, 188, 156, 0.4);
    transform: scale(1.1);
}

.timeline-content {
    overflow: hidden;
    position: relative;
}

.timeline-content h3 {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
}

.result-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(26, 188, 156, 0.08);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.2);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.result-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Portfolio Gallery */
.portfolio-gallery {
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.portfolio-gallery .swiper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    position: relative;
}

.portfolio-gallery .swiper-wrapper {
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.portfolio-gallery .swiper-slide {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.portfolio-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.portfolio-gallery .swiper-pagination {
    bottom: 1rem;
    position: relative;
    margin-top: 1rem;
}

.portfolio-gallery .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: var(--transition);
}

.portfolio-gallery .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 30px;
    border-radius: 5px;
}

.portfolio-gallery .swiper-button-prev,
.portfolio-gallery .swiper-button-next {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    z-index: 10;
    opacity: 0.9;
}

.portfolio-gallery .swiper-button-prev {
    left: 1rem;
}

.portfolio-gallery .swiper-button-next {
    right: 1rem;
}

.portfolio-gallery .swiper-button-prev:hover,
.portfolio-gallery .swiper-button-next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.portfolio-gallery:hover .swiper-button-prev,
.portfolio-gallery:hover .swiper-button-next {
    opacity: 1;
}

.portfolio-gallery .swiper-button-prev::after,
.portfolio-gallery .swiper-button-next::after {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(26, 188, 156, 0.08);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    flex: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.12);
    border-color: rgba(26, 188, 156, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Testimonial Card */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(26, 188, 156, 0.08);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.testimonial-card:hover {
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.15);
    border-color: rgba(26, 188, 156, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.25rem;
}

.testimonial-stars i {
    color: #f1c40f;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 4rem;
    color: rgba(26, 188, 156, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3b5998;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.author-info p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.project-prev, .project-next {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
}

.project-prev:hover, .project-next:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: #3b5998;
}

.project-nav-label {
    font-size: 14px;
    color: #666;
}

.project-nav-title {
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-nav {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 14px;
    }
    
    .post-main {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .portfolio-gallery .swiper-slide {
        height: 250px;
    }
    
    .portfolio-gallery .swiper-button-prev,
    .portfolio-gallery .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    
    .portfolio-gallery .swiper-button-prev::after,
    .portfolio-gallery .swiper-button-next::after {
        font-size: 1rem;
    }
}

/* Анимации для появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

/* Parallax hero background on desktop */
@media (min-width: 1024px) {
.portfolio-hero-bg {
  background-attachment: fixed;
 }
}

/* ==========================================================================
 Portfolio Redesign Styles 
 Added according to portfolio-page.md specification
 ========================================================================== */

/* Enhanced Section Titles for Redesign */
.section-title--redesigned {
 text-align: center;
 font-size: 2.5rem;
 margin-bottom: 0.5rem;
 position: relative;
 padding-bottom: 1rem;
 background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
}

.section-title--redesigned::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 60px;
 height: 4px;
 background: var(--gradient-primary);
 border-radius: 2px;
}

.info-content .section-title--redesigned {
 text-align: left;
 margin-bottom: 2rem;
}

/* Lead text enhancement */
.lead--redesigned {
 font-size: 1.125rem;
 color: var(--text-light);
 line-height: 1.8;
 margin-bottom: 3rem;
}

/* Enhanced Features Grid */
.features-grid--redesigned {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 1.5rem;
}

.feature-item--redesigned {
 display: flex;
 gap: 1rem;
 padding: 1.5rem;
 background: var(--bg-alt);
 border-radius: var(--radius);
 transition: all 0.3s ease;
 position: relative;
 overflow: hidden;
}

.feature-item--redesigned::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
 opacity: 0;
 transition: opacity 0.3s ease;
 z-index: 0;
}

.feature-item--redesigned:hover::before {
 opacity: 0.05;
}

.feature-item--redesigned:hover {
 background: rgba(26, 188, 156, 0.05);
 transform: translateY(-2px);
 box-shadow: 0 10px 30px rgba(26, 188, 156, 0.1);
}

.feature-icon--redesigned {
 width: 50px;
 height: 50px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: var(--gradient-primary);
 border-radius: var(--radius);
 color: white;
 font-size: 1.25rem;
 flex-shrink: 0;
 z-index: 1;
 transition: transform 0.3s ease;
}

.feature-item--redesigned:hover .feature-icon--redesigned {
 transform: scale(1.1) rotate(5deg);
}

.feature-item--redesigned h4,
.feature-item--redesigned p {
 z-index: 1;
 position: relative;
}

/* Tech Stack Redesign */
.tech-stack-card--redesigned,
.stats-card--redesigned {
 background: var(--bg-alt);
 border-radius: var(--radius-lg);
 padding: 2rem;
 border: 1px solid rgba(26, 188, 156, 0.1);
 transition: transform 0.3s ease;
}

.tech-stack-card--redesigned:hover,
.stats-card--redesigned:hover {
 transform: translateY(-5px);
 box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tech-stack-title,
.stats-title {
 font-size: 1.2rem;
 margin-bottom: 1.5rem;
 color: var(--secondary);
}

.tech-badges--redesigned {
 display: flex;
 flex-wrap: wrap;
 gap: 0.75rem;
}

.tech-badge--redesigned {
 display: inline-block;
 padding: 0.5rem 1rem;
 font-size: 0.85rem;
 background: white;
 border: 1px solid rgba(26, 188, 156, 0.2);
 border-radius: 50px;
 font-weight: 500;
 transition: all 0.3s ease;
 animation: fadeInBadge 0.6s ease forwards;
 opacity: 0;
 position: relative;
 overflow: hidden;
}

.tech-badge--redesigned:nth-child(1) { animation-delay: 0.1s; }
.tech-badge--redesigned:nth-child(2) { animation-delay: 0.2s; }
.tech-badge--redesigned:nth-child(3) { animation-delay: 0.3s; }
.tech-badge--redesigned:nth-child(4) { animation-delay: 0.4s; }
.tech-badge--redesigned:nth-child(5) { animation-delay: 0.5s; }
.tech-badge--redesigned:nth-child(6) { animation-delay: 0.6s; }
.tech-badge--redesigned:nth-child(7) { animation-delay: 0.7s; }

.tech-badge--redesigned:hover {
 background: var(--gradient-primary);
 color: white;
 border-color: transparent;
 transform: scale(1.05);
 box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
}

.tech-badge--redesigned::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
 transform: translateX(-100%);
 transition: transform 0.6s ease;
}

.tech-badge--redesigned:hover::before {
 transform: translateX(100%);
}

/* Stats Grid Redesign */
.stats-grid--redesigned {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 1.5rem;
}

.stat--redesigned {
 text-align: center;
 padding: 1rem;
 background: white;
 border-radius: var(--radius);
 border: 1px solid rgba(26, 188, 156, 0.08);
 transition: all 0.3s ease;
 position: relative;
 overflow: hidden;
}

.stat--redesigned::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
 opacity: 0;
 transition: opacity 0.3s ease;
 z-index: 0;
}

.stat--redesigned:hover::before {
 opacity: 0.05;
}

.stat--redesigned:hover {
 border-color: rgba(26, 188, 156, 0.2);
 box-shadow: 0 8px 24px rgba(26, 188, 156, 0.1);
 transform: translateY(-2px);
}

.stat-value {
 display: block;
 font-family: var(--font-heading);
 font-size: 1.75rem;
 font-weight: 800;
 background: var(--gradient-primary);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;
 margin-bottom: 0.25rem;
 transition: all 0.3s ease;
 position: relative;
 z-index: 1;
}

.stat--redesigned:hover .stat-value {
 transform: scale(1.1);
}

.stat-label {
 font-size: 0.8rem;
 color: var(--text-muted);
 text-transform: uppercase;
 letter-spacing: 0.05em;
 position: relative;
 z-index: 1;
}

/* Horizontal Timeline Redesign */
.portfolio-timeline--redesigned {
 padding: 6rem 0;
 background: var(--bg-alt);
}

.portfolio-timeline--redesigned .section-title--redesigned {
 margin-bottom: 4rem;
}

/* Horizontal Timeline - NEW implementation */
.timeline--redesigned {
 display: flex;
 justify-content: space-between;
 position: relative;
 padding: 3rem 0;
 max-width: 1200px;
 margin: 0 auto;
 gap: 2rem;
}

.timeline--redesigned::before {
 content: '';
 position: absolute;
 top: 50%;
 left: 0;
 right: 0;
 height: 4px;
 background: linear-gradient(
  to right,
  transparent 0%,
  var(--border) 10%,
  var(--border) 90%,
  transparent 100%
 );
 transform: translateY(-50%);
 z-index: 0;
}

.timeline--redesigned::after {
 content: '';
 position: absolute;
 top: 50%;
 left: 10%;
 right: 10%;
 height: 4px;
 background: var(--gradient-primary);
 transform: translateY(-50%);
 z-index: 1;
 width: 0;
 animation: timelineProgress 2s ease 0.5s forwards;
}

@keyframes timelineProgress {
 to {
  width: 80%;
 }
}

.timeline-item--redesigned {
 flex: 1;
 position: relative;
 text-align: center;
 z-index: 2;
 transition: all 0.3s ease;
}

.timeline-item--redesigned:hover {
 transform: translateY(-5px);
}

.timeline-dot--redesigned {
 width: 24px;
 height: 24px;
 background: var(--gradient-primary);
 border-radius: 50%;
 border: 4px solid white;
 box-shadow: 0 0 0 6px rgba(26, 188, 156, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
 margin: 0 auto 1.5rem;
 transition: all 0.3s ease;
 position: relative;
 z-index: 3;
}

.timeline-dot--redesigned:hover {
 transform: scale(1.2);
 box-shadow: 0 0 0 8px rgba(26, 188, 156, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-dot--redesigned.is-last {
 background: var(--gradient-primary);
 animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
 0%, 100% {
  box-shadow: 0 0 0 6px rgba(26, 188, 156, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
 }
 50% {
  box-shadow: 0 0 0 12px rgba(26, 188, 156, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3);
 }
}

.timeline-content--redesigned {
 background: white;
 border-radius: var(--radius);
 padding: 1.5rem;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
 border: 1px solid var(--border);
 transition: all 0.3s ease;
}

.timeline-content--redesigned:hover {
 box-shadow: 0 8px 24px rgba(26, 188, 156, 0.15);
 border-color: rgba(26, 188, 156, 0.3);
 transform: translateY(-3px);
}

.timeline-date {
 font-size: 0.9rem;
 color: var(--text-muted);
 font-weight: 500;
 margin-bottom: 0.5rem;
 text-transform: uppercase;
 letter-spacing: 0.05em;
}

.timeline-content--redesigned h3 {
 font-size: 1.2rem;
 margin-bottom: 0.75rem;
 color: var(--secondary);
}

.timeline-content--redesigned p {
 font-size: 0.9rem;
 color: var(--text-light);
 line-height: 1.6;
 margin-bottom: 0;
}

/* Tech badge animation */
@keyframes fadeInBadge {
 from {
  opacity: 0;
  transform: translateY(10px);
 }
 to {
  opacity: 1;
  transform: translateY(0);
 }
}

/* Full-width features grid */
.features-grid--full-width {
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 max-width: 100%;
 margin: 2rem 0;
}

/* New Tech Stack section styling */
.portfolio-tech--redesigned {
	padding: 6rem 0;
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
}

.tech-stack-section--redesigned {
 max-width: 800px;
 margin: 0 auto;
}

.tech-stack-card--redesigned {
 background: white;
 border-radius: var(--radius-lg);
 padding: 2rem;
 border: 1px solid rgba(26, 188, 156, 0.1);
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
 transition: transform 0.3s ease;
}

.tech-stack-card--redesigned:hover {
 transform: translateY(-5px);
 box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tech-stack-title {
 font-size: 1.2rem;
 margin-bottom: 1.5rem;
 color: var(--secondary);
 text-align: center;
}

/* Redesigned section layout */
.portfolio-info--redesigned {
	padding: 6rem 0;
	background: white;
}

.info-grid--redesigned {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 4rem;
	align-items: start;
}

.info-content--redesigned {
	padding-right: 2rem;
}

.info-sidebar--redesigned {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: sticky;
	top: 120px;
}

.info-container--redesigned {
	max-width: 100%;
	margin: 0;
	padding: 0;
}

@media (max-width: 1024px) {
	.info-grid--redesigned {
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.info-content--redesigned {
		padding-right: 0;
	}

	.info-sidebar--redesigned {
		position: static;
	}

	.timeline--redesigned {
		flex-direction: column;
		gap: 1.5rem;
		padding: 1.5rem 0;
	}

	.timeline--redesigned::before {
		top: 0;
		bottom: 0;
		left: 50%;
		right: auto;
		width: 4px;
		height: 100%;
		transform: translateX(-50%);
	}

	.timeline--redesigned::after {
		top: 0;
		left: 50%;
		right: auto;
		width: 4px;
		height: 0;
		transform: translateX(-50%);
		animation: timelineProgressV 2s ease 0.5s forwards;
	}

	@keyframes timelineProgressV {
		to {
			height: 100%;
			width: 4px;
		}
	}

	.timeline-item--redesigned {
		width: 50%;
		align-self: flex-start;
		padding-right: 2rem;
		padding-left: 0;
		text-align: left;
	}

	.timeline-item--redesigned:nth-child(even) {
		align-self: flex-end;
		padding-left: 2rem;
		padding-right: 0;
		text-align: right;
	}

	.timeline-dot--redesigned {
		margin: 0 0 1rem;
	}
}

@media (max-width: 768px) {
	.timeline--redesigned::before,
	.timeline--redesigned::after {
		left: 12px;
		transform: none;
	}

	.timeline--redesigned::after {
		width: 4px;
	}

	@keyframes timelineProgressV {
		to {
			height: 100%;
			width: 4px;
		}
	}

	.timeline-item--redesigned,
	.timeline-item--redesigned:nth-child(even) {
		width: 100%;
		align-self: flex-start;
		padding-left: 3rem;
		padding-right: 0;
		text-align: left;
	}

	.timeline-dot--redesigned {
		position: absolute;
		left: 0;
		top: 0;
		margin: 0 0 1rem;
	}
}

/* ==========================================================================
 END Portfolio Redesign Styles
 ========================================================================== */

 .tos_warning {
     position: fixed;
     bottom: 0;
     z-index: 999;
     margin: 0 auto;
     display: flex;
     justify-content: center;
     align-items: center;
     background: #fff;
     padding: 10px 20px;
     box-shadow: 0 0 10px rgba(0, 0, 0, .1);
     opacity: 0.9;
     /*width: 100%;*/
    border-radius: var(--radius-lg);
 }

 .tos_message {
     line-height: 20px
 }

 .tos_button {     
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     font-weight: 400;
     line-height: 24px;
     margin-left: 2vw;
 }

 .tos_button:hover {     
     outline: none
 }

 @media only screen and (max-width: 750px) {
     .tos_warning {
         flex-direction: column;
         text-align: center
     }

     .tos_button {
         margin: 10px 0
     }
 }