:root {
    --primary: #4d8dff;
    --primary-dark: #3a6fd1;
    --secondary: #ff5e8a;
    --dark-bg: #0f172a;
    --darker-bg: #0a1121;
    --light-text: #f8fafc;
    --medium-text: #cbd5e1;
    --dark-text: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(148, 163, 184, 0.15);
    --success: #10b981;
}

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

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--light-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background-color: var(--darker-bg);
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

/* --- Animated Background --- */
.bg-animated {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: blobMove 25s infinite ease-in-out;
    will-change: transform;
}

.blob1 {
    animation-duration: 30s;
    animation-delay: 0s;
}
.blob2 {
    animation-duration: 35s;
    animation-delay: 5s;
}
.blob3 {
    animation-duration: 40s;
    animation-delay: 10s;
}

.blob1 { background: linear-gradient(120deg, var(--primary), var(--secondary)); width: 600px; height: 600px; left: -200px; top: -100px; }
.blob2 { background: linear-gradient(120deg, #00c6ff, var(--primary)); width: 400px; height: 400px; right: -120px; top: 40vh; }
.blob3 { background: linear-gradient(120deg, #ffb86c, var(--secondary)); width: 350px; height: 350px; left: 60vw; bottom: -120px; }

@keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.15); }
    50% { transform: translate(80px, 20px) scale(0.95); }
    75% { transform: translate(-20px, 50px) scale(1.1); }
}

/* --- Glassmorphism Container --- */
.glass {
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 24px;
    border: 1px solid var(--card-border);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--card-border);
}

header.glass {
    margin: 10px !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2.1rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1px;
    text-shadow: 0 2px 16px rgba(77, 141, 255, 0.2);
}

.logo span {
    background: linear-gradient(90deg, var(--primary) 0%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.logo i {
    color: var(--primary);
    font-size: 2.3rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-links a:after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-links a:hover:after,
.nav-links a:focus-visible:after { width: 100%; }

.nav-links a:hover,
.nav-links a:focus-visible { color: var(--primary); }

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.2);
    z-index: 1000;
    padding: 8px 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--medium-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: rgba(77, 141, 255, 0.1);
    color: var(--primary);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
}

.telegram-btn {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.telegram-btn,
.telegram-btn-large {
    background: linear-gradient(to right, #2e385b, var(--primary));
    color: #fff !important;
    border: none;
    padding: 13px 32px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1.13rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 24px rgba(77, 141, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.telegram-btn:before,
.telegram-btn-large:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.telegram-btn:hover,
.telegram-btn-large:hover,
.telegram-btn:focus,
.telegram-btn-large:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.3);
}

.telegram-btn:hover:before,
.telegram-btn-large:hover:before,
.telegram-btn:focus:before,
.telegram-btn-large:focus:before {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

/* --- Hero --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
}

.hero-content-split {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--light-text);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-text h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: var(--medium-text);
    font-size: 1.35rem;
    margin-bottom: 0;
    max-width: 600px;
    line-height: 1.6;
}

.hero-image {
    flex-shrink: 0;
    width: 440px;
    height: 370px;
    position: relative;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0 27px 27px 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 24px 24px 0;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--light-text);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--medium-text);
    font-size: 1.35rem;
    margin-bottom: 38px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-bottom: 38px;
    flex-wrap: wrap;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    border: none;
    padding: 13px 32px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1.13rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.secondary-btn:hover,
.secondary-btn:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stats {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    min-width: 140px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(77, 141, 255, 0.1);
    padding: 20px 28px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .number {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 7px;
    line-height: 1;
}

.stat-item .label {
    color: var(--medium-text);
    font-size: 1rem;
    font-weight: 600;
}

/* --- Section Styles --- */
section {
    padding: 90px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--light-text);
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.2;
}

.section-title h2 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--medium-text);
    font-size: 1.2rem;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 36px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 22px;
    padding: 38px 28px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(77, 141, 255, 0.15);
    border-color: rgba(77, 141, 255, 0.3);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.2) 0%, rgba(77, 141, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary);
    font-size: 2.3rem;
    box-shadow: 0 2px 12px rgba(77, 141, 255, 0.1);
    border: 1px solid rgba(77, 141, 255, 0.15);
}

.feature-card h3 {
    margin-bottom: 18px;
    color: var(--light-text);
    font-size: 1.35rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--medium-text);
    font-size: 1.1rem;
    flex-grow: 1;
}

/* --- Use Cases --- */
.use-case {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}

.use-case:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(77, 141, 255, 0.15);
}

/* --- Modern Case Styles --- */
.modern-case {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(77, 141, 255, 0.2);
    overflow: visible;
    padding: 40px;
}

.modern-case::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 20px 20px 0 0;
}

.modern-case:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(77, 141, 255, 0.2), 0 0 30px rgba(77, 141, 255, 0.1);
    border-color: rgba(77, 141, 255, 0.4);
}

.case-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.modern-icon {
    position: relative;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.3) 0%, rgba(255, 94, 138, 0.3) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    border: 2px solid rgba(77, 141, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(77, 141, 255, 0.2);
}

.modern-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(77, 141, 255, 0.3);
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.2;
    animation: pulse 2s infinite;
    z-index: -1;
}

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

.case-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 25px;
    padding: 8px 16px;
    box-shadow: 0 4px 16px rgba(77, 141, 255, 0.3);
    animation: badgeGlow 3s ease-in-out infinite alternate;
}

.badge-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes badgeGlow {
    from { box-shadow: 0 4px 16px rgba(77, 141, 255, 0.3); }
    to { box-shadow: 0 4px 20px rgba(77, 141, 255, 0.5), 0 0 20px rgba(255, 94, 138, 0.3); }
}

.case-title-modern {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.case-description-modern {
    font-size: 1.15rem;
    color: var(--medium-text);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.metrics-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-item-modern {
    background: rgba(77, 141, 255, 0.1);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(77, 141, 255, 0.2);
    transition: all 0.3s ease;
}

.metric-item-modern:hover {
    transform: translateY(-3px);
    background: rgba(77, 141, 255, 0.15);
    border-color: rgba(77, 141, 255, 0.4);
    box-shadow: 0 8px 24px rgba(77, 141, 255, 0.2);
}

.metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--medium-text);
    font-weight: 600;
}

.modern-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.modern-tag {
    background: rgba(77, 141, 255, 0.15);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(77, 141, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-tag:hover {
    background: rgba(77, 141, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 141, 255, 0.2);
}

.modern-tag i {
    font-size: 0.9rem;
}

.case-features-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-highlight {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(77, 141, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    background: rgba(77, 141, 255, 0.1);
    border-color: rgba(77, 141, 255, 0.3);
    transform: translateX(5px);
}

.feature-highlight i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 16px;
}

.feature-highlight span {
    color: var(--medium-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.case-actions-modern {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    align-items: center;
    flex-wrap: wrap;
}

.telegram-btn-modern {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(77, 141, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.telegram-btn-modern::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;
}

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

.telegram-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(77, 141, 255, 0.4);
}

.demo-preview {
    background: rgba(77, 141, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(77, 141, 255, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.demo-preview {
    text-decoration: none;
}

.demo-preview:hover {
    background: rgba(77, 141, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 141, 255, 0.2);
}

.gallery-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item-modern {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(77, 141, 255, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gallery-item-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(77, 141, 255, 0.3);
    border-color: rgba(77, 141, 255, 0.5);
}

.gallery-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.8) 0%, rgba(255, 94, 138, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
    border-radius: 16px;
}

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

.gallery-overlay-modern i {
    color: white;
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery-overlay-modern span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.use-case-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
}

.use-case-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--light-text);
}

.use-case-content p {
    color: var(--medium-text);
    margin-bottom: 15px;
}

.use-case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: rgba(77, 141, 255, 0.15);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.results-list {
    margin-top: 15px;
    padding-left: 20px;
}

.results-list li {
    margin-bottom: 8px;
    color: var(--medium-text);
    position: relative;
}

.results-list li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

/* --- Tech Stack --- */
.tech-stack-section {
    background: rgba(15, 23, 42, 0.5);
    padding: 60px 0;
    margin: 60px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.tech-stack-item i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.tech-stack-item span {
    color: var(--medium-text);
    font-weight: 600;
}

/* --- Process --- */
.process-steps {
    counter-reset: step;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.process-step:before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    border: 1px solid rgba(77, 141, 255, 0.15);
}

.process-step h3 {
    margin-bottom: 15px;
    color: var(--light-text);
}

.process-step p {
    color: var(--medium-text);
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 36px;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(77, 141, 255, 0.15);
    border-color: rgba(77, 141, 255, 0.3);
}

.portfolio-img {
    height: 220px;
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-info {
    padding: 28px;
}

.portfolio-info h3 {
    margin-bottom: 16px;
    color: var(--light-text);
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.portfolio-info p {
    color: var(--medium-text);
    margin-bottom: 22px;
    text-align: center;
    font-size: 1.1rem;
}

.tech-stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-item {
    background: rgba(77, 141, 255, 0.15);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 600;
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 36px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 22px;
    padding: 38px 28px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(77, 141, 255, 0.15);
}

.testimonial-card:before {
    content: '“';
    position: absolute;
    top: 18px;
    left: 28px;
    font-size: 4rem;
    color: rgba(77, 141, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-top: 18px;
    color: var(--medium-text);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 24px;
}

.author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    margin-right: 18px;
    flex-shrink: 0;
    font-size: 1.3rem;
    border: 1px solid rgba(77, 141, 255, 0.15);
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--light-text);
    font-weight: 700;
}

.author-info p {
    color: var(--medium-text);
    font-size: 1rem;
}

/* --- Contact --- */
.contact {
    background: linear-gradient(120deg, #0c4a6e, #0369a1);
    color: #fff;
}

.contact .section-title h2,
.contact .section-title p {
    color: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
    gap: 40px;
    text-align: center;
}

.telegram-cta {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 22px;
    padding: 48px 32px;
    box-shadow: 0 8px 32px rgba(2, 6, 23, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(18px);
}

.telegram-cta h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 800;
}

.telegram-cta p {
    color: #e2e8f0;
    margin-bottom: 32px;
    font-size: 1.15rem;
}

.telegram-icon {
    font-size: 4rem;
    color: #229ed9;
    margin-bottom: 24px;
}

.telegram-cta ul {
    text-align: left;
    margin-bottom: 30px;
    padding-left: 24px;
    color: #cbd5e1;
    list-style: none;
}

.telegram-cta ul li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 30px;
}

.telegram-cta ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: bold;
}

/* --- Footer --- */
footer {
    background: rgba(15, 23, 42, 0.9) !important;
    color: var(--medium-text) !important;
    padding: 80px 0 40px;
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--card-border);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 22px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    color: var(--light-text);
}

.footer-col h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

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

.footer-links li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: var(--medium-text) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary) !important;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    color: var(--medium-text) !important;
    font-size: 1rem;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    border-left: 1px solid var(--card-border);
}

.mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu .dropdown-menu {
    position: static;
    display: none;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 10px;
    border-radius: 0;
}

.mobile-menu .dropdown.active .dropdown-menu {
    display: block;
}

.mobile-menu .dropdown-menu a {
    padding: 10px 20px;
    border-radius: 8px;
    margin-left: 20px;
    background: rgba(77, 141, 255, 0.1);
    border: 1px solid rgba(77, 141, 255, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Tabs --- */
.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--medium-text);
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tab:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    border-radius: 30px;
}

.tab.active {
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.2);
}

.tab.active:before {
    opacity: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* --- SEO Text Block --- */
.seo-text-block {
    margin: 20px 0;
    position: relative;
}

.seo-text-block .glass {
    position: relative;
    overflow: hidden;
}

.seo-text-block .glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 24px 24px 0 0;
}

.seo-text-block h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
    text-align: center;
    position: relative;
}

.seo-text-block h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
}

.seo-text-block p {
    color: var(--medium-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.seo-text-block details {
    margin-top: 20px;
    border-radius: 12px;
    background: rgba(77, 141, 255, 0.05);
    border: 1px solid rgba(77, 141, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.seo-text-block details:hover {
    background: rgba(77, 141, 255, 0.08);
    border-color: rgba(77, 141, 255, 0.2);
}

.seo-text-block summary {
    cursor: pointer;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(77, 141, 255, 0.05);
    border-bottom: 1px solid rgba(77, 141, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-text-block summary::marker {
    display: none;
}

.seo-text-block summary::before {
    content: '▶';
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.seo-text-block details[open] summary::before {
    transform: rotate(90deg);
}

.seo-text-block summary:hover {
    background: rgba(77, 141, 255, 0.08);
}

.seo-text-block details p {
    padding: 15px 20px;
    margin: 0;
    color: var(--medium-text);
    line-height: 1.6;
}

.seo-text-block ul {
    padding-left: 30px;
    margin: 15px 0;
}

.seo-text-block li {
    margin-bottom: 8px;
    color: var(--medium-text);
    position: relative;
}

.seo-text-block li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: -15px;
    top: 0;
}

/* --- SEO Text Block Visibility --- */
@media (min-width: 769px) {
    .seo-text-block {
        display: none;
    }
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero { padding: 80px 0; }
    section { padding: 70px 0; }

    .hero-content-split {
        gap: 30px;
    }

    .hero-image {
        width: 350px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .header-container { height: 70px; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .hero { padding: 60px 0 30px; min-height: auto; }
    .hero-content { padding: 30px 20px; }

    .hero-content-split {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        width: 300px;
        height: 200px;
    }

    .cta-buttons { flex-direction: column; gap: 12px; }
    .stats { gap: 18px; }
    .stat-item { min-width: 120px; padding: 15px 20px; }

    section { padding: 50px 0 30px; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 2rem; }

    .use-case {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .use-case-icon {
        margin-bottom: 20px;
    }

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

    .tabs {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
    }

    .tab {
        border-radius: 15px;
        margin-bottom: 5px;
    }

    /* Gallery Responsive Adjustments */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-nav {
        font-size: 24px;
        padding: 10px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero { padding: 50px 0 20px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }

    .section-title { margin-bottom: 32px; }
    .section-title h2 { font-size: 1.8rem; }

    .feature-card { padding: 25px 20px; }

    /* Gallery Mobile Adjustments */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .gallery-item {
        border-radius: 8px;
    }

    .modal-content {
        width: 98%;
        top: 50%;
        transform: translateY(-50%);
    }

    .modal-caption {
        font-size: 16px;
        padding: 10px 0;
    }

    .close {
        top: -35px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }

    .close::after {
        font-size: 10px;
        top: 40px;
    }

    .modal-nav {
        font-size: 20px;
        padding: 8px;
        width: 40px;
        height: 40px;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Widget styles */
.widget-container {
    margin: 40px 0;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.widget-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--light-text);
}

#onlinechat {
    min-height: 500px;
}

/* Hide default widget elements */
.bx-imopenlines-message-dialog-number {
    display: none !important;
}

/* Project Slider Styles */
.project-slider {
    margin-top: 30px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.project-slider .swiper-slide img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-slider .swiper-slide img:hover {
    transform: scale(1.02);
}

.project-slider .swiper-pagination {
    bottom: 10px !important;
}

.project-slider .swiper-button-next,
.project-slider .swiper-button-prev {
    color: var(--primary) !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.project-slider .swiper-button-next:after,
.project-slider .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: bold;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(77, 141, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    color: white;
    font-size: 24px;
}

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

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.modal-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.modal-caption {
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.close:hover {
    color: var(--primary);
    background: rgba(77, 141, 255, 0.3);
}

/* Add a visual hint for the close button */
.close::after {
    content: "Закрыть";
    position: absolute;
    top: 45px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.close:hover::after {
    opacity: 1;
}

/* Navigation Arrows */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(77, 141, 255, 0.7);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Tech Stack Icons */
.tech-icon {
    font-size: 2.5rem;
    margin: 0 15px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px);
    color: var(--secondary);
}

/* Additional responsive rules for tech stack section */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-btn,
    .overlay {
        display: none !important;
    }
}

/* --- Case Study Page Styles --- */
.case-study {
    background: rgba(15, 23, 42, 0.3);
    margin: 0;
    padding: 60px 0;
}

.case-header {
    text-align: center;
    margin-bottom: 50px;
}

.case-header h2 {
    font-size: 2.8rem;
    color: var(--light-text);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.case-header h2 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-subtitle {
    color: var(--medium-text);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
}

.case-section {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-section h3 {
    font-size: 2rem;
    color: var(--light-text);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.case-section h3:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.case-section p {
    color: var(--medium-text);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-block {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 30px 25px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(77, 141, 255, 0.15);
    border-color: rgba(77, 141, 255, 0.3);
}

.feature-block h4 {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-block h4 i {
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-block ul {
    padding-left: 20px;
    margin: 0;
}

.feature-block li {
    margin-bottom: 8px;
    color: var(--medium-text);
}

.tech-stack-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tech-item-detailed {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}

.tech-item-detailed:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(77, 141, 255, 0.12);
}

/* Cascade Tech Stack */
.tech-stack-cascade {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    position: relative;
}

.tech-step {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.tech-step:nth-child(1) { animation-delay: 0.1s; }
.tech-step:nth-child(2) { animation-delay: 0.3s; }
.tech-step:nth-child(3) { animation-delay: 0.5s; }
.tech-step:nth-child(4) { animation-delay: 0.7s; }

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

.tech-step-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px 25px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tech-step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 20px 20px 0 0;
}

.tech-step-content:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 48px rgba(77, 141, 255, 0.2);
    border-color: rgba(77, 141, 255, 0.4);
}

.cascade-arrow {
    margin: 15px 0;
    color: var(--primary);
    font-size: 24px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(77, 141, 255, 0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.tech-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.2) 0%, rgba(77, 141, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.8rem;
    border: 1px solid rgba(77, 141, 255, 0.15);
}

.tech-content h4 {
    margin-bottom: 8px;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 700;
}

.tech-content p {
    color: var(--medium-text);
    font-size: 1rem;
    margin: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 25px;
    margin-top: 30px;
}

.result-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(77, 141, 255, 0.15);
}

.result-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.2) 0%, rgba(77, 141, 255, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    margin: 0 auto 20px;
    border: 1px solid rgba(77, 141, 255, 0.15);
}

.result-card h4 {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1.25rem;
    font-weight: 700;
}

.result-card p {
    color: var(--medium-text);
    font-size: 1.05rem;
    line-height: 1.6;
}

.project-tech {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tech-category {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
}

.tech-category h4 {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 700;
}

.tech-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-category li {
    color: var(--medium-text);
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.tech-category li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.benefits-list {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
    margin-top: 30px;
}

.benefits-list ul {
    list-style: none;
}

.benefits-list li {
    margin-bottom: 15px;
    color: var(--medium-text);
    font-size: 1.05rem;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.benefits-list li:before {
    content: "";
}

.benefits-list strong {
    color: var(--light-text);
    font-weight: 600;
}

.conclusion {
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.1) 0%, rgba(255, 94, 138, 0.1) 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(77, 141, 255, 0.2);
    margin-top: 40px;
    text-align: center;
}

.conclusion p {
    color: var(--light-text);
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

.case-gallery {
    margin-top: 50px;
    text-align: center;
}

.case-gallery h3 {
    font-size: 2rem;
    color: var(--light-text);
    font-weight: 700;
    margin-bottom: 30px;
}

.cta-section {
    background: linear-gradient(120deg, #0c4a6e, #0369a1);
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.cta-section p {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Responsive adjustments for case study */
@media (max-width: 768px) {
    .case-header h2 {
        font-size: 2.2rem;
    }

    .case-section {
        margin-bottom: 40px;
    }

    .case-section h3 {
        font-size: 1.6rem;
    }

    .features-grid,
    .tech-stack-detailed,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-item-detailed {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .project-tech {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        padding: 20px;
    }

    .conclusion {
        padding: 20px;
    }

    .conclusion p {
        font-size: 1.1rem;
    }

    /* Modern case responsive */
    .modern-case {
        padding: 30px 20px;
    }

    .case-header-modern {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .case-title-modern {
        font-size: 1.8rem;
    }

    .metrics-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .metric-item-modern {
        padding: 15px 10px;
    }

    .metric-number {
        font-size: 1.5rem;
    }

    .case-features-modern {
        flex-direction: column;
        gap: 10px;
    }

    .feature-highlight {
        justify-content: center;
        text-align: center;
    }

    .case-actions-modern {
        flex-direction: column;
        gap: 12px;
    }

    .gallery-grid-modern {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .modern-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .case-badge {
        align-self: center;
    }
}

@media (max-width: 576px) {
    .metrics-grid-modern {
        grid-template-columns: 1fr;
    }

    .gallery-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .modern-case {
        padding: 25px 15px;
    }

    .case-title-modern {
        font-size: 1.6rem;
    }

    .case-description-modern {
        font-size: 1.1rem;
    }
}

/* Chat Message Styles */
.chat-message {
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.chat-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.chat-content {
    flex: 1;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.chat-name {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
}

.chat-time {
    color: var(--medium-text);
    font-size: 0.8rem;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 16px rgba(77, 141, 255, 0.1);
    backdrop-filter: blur(18px);
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
}

.chat-bubble.user {
    background: linear-gradient(135deg, rgba(77, 141, 255, 0.2), rgba(255, 94, 138, 0.2));
    border-color: rgba(77, 141, 255, 0.3);
}
