/* MAX ПРО — Modern Blue-Purple Theme */

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --accent: #7C3AED;
    --accent-light: #A78BFA;
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-hero: linear-gradient(135deg, #f5f3ff 0%, #ffffff 50%, #faf5ff 100%);

    --bg: #ffffff;
    --bg-alt: #f8f7fc;
    --card-bg: #ffffff;
    --card-hover: #f5f3ff;

    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(79,70,229,.06), 0 2px 4px -1px rgba(0,0,0,.03);
    --shadow-lg: 0 10px 25px -5px rgba(79,70,229,.1), 0 8px 10px -6px rgba(0,0,0,.04);
}

/* ===== Base ===== */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text); }
a { color: var(--primary); }

.ai-main-content { min-height: calc(100vh - 76px - 260px); }

/* ===== Header / Navbar ===== */
.ai-header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 1050 !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: background .3s, box-shadow .3s;
}
.ai-header.scrolled {
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.ai-logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}
.ai-logo:hover { opacity: .85; }

.logo-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 4px;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color .2s;
    position: relative;
    margin: 0 8px;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 50%;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width .25s;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 80%; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }

/* hamburger icon colour override for light navbar */
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234a5568' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== Buttons ===== */
.ai-cta-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 28px;
    padding: 10px 24px;
    font-weight: 600;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(79,70,229,.3);
    transition: transform .2s, box-shadow .2s;
}
.ai-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,.4);
    color: #fff !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 28px;
    padding: 12px 30px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,.25);
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,.35);
    background: var(--gradient-primary);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 28px;
    padding: 10px 28px;
    font-weight: 600;
    transition: background .2s, color .2s, transform .2s;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Hero ===== */
.ai-hero {
    background: var(--gradient-hero);
    padding: 140px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.ai-hero .container { position: relative; z-index: 2; }
.ai-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.ai-hero h1 .text-primary { color: var(--primary) !important; }
.ai-hero p.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 560px;
}

.ai-hero-graphic-3d { height: 400px; display: flex; align-items: center; justify-content: center; }
.ai-3d-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
/* hide old decorative 3d elements */
.ai-cube, .ai-sphere, .ai-pyramid, .ai-neural-network,
.ai-node, .ai-connection { display: none; }

/* ===== Floating Icons (Hero & Case Study) ===== */
.floating-icon {
    position: absolute;
    width: 52px; height: 52px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    z-index: 3;
    animation: fi-float 5s ease-in-out infinite;
}

/* positions around the central Telegram icon (hero) */
.fi-1 { top: 8%;  left: 8%;   animation-delay: 0s;     }
.fi-2 { top: 4%;  right: 12%; animation-delay: -.7s;   }
.fi-3 { bottom: 12%; left: 4%;  animation-delay: -1.4s;  }
.fi-4 { bottom: 8%;  right: 6%; animation-delay: -2.1s;  }
.fi-5 { top: 44%; left: -2%;  animation-delay: -2.8s;  }
.fi-6 { top: 38%; right: -2%; animation-delay: -3.5s;  }
.fi-7 { top: 68%; left: 12%;  animation-delay: -4.2s;  }
.fi-8 { top: 18%; right: 2%;  animation-delay: -4.9s;  }

/* mini variant for case-study detail graphic */
.fi-mini { width: 40px; height: 40px; font-size: 1rem; }
.fi-m1 { top: 0;   left: 5%;  animation-delay: 0s;   }
.fi-m2 { top: 5%;  right: 0;  animation-delay: -1.2s;}
.fi-m3 { bottom: 5%; left: 0;  animation-delay: -2.4s;}
.fi-m4 { bottom: 0;  right: 5%;animation-delay: -3.6s;}

@keyframes fi-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25%  { transform: translateY(-10px) rotate(3deg); }
    50%  { transform: translateY(-4px) rotate(-2deg); }
    75%  { transform: translateY(-14px) rotate(1deg); }
}

/* Case study detail decorative graphic */
.case-detail-graphic {
    width: 220px; height: 220px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.case-graphic-inner {
    position: relative;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-hero);
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.statistics-section { max-width: 440px; }

/* ===== Sections ===== */
.ai-section { padding: 80px 0; }
.ai-section.bg-light,
.ai-section.bg-dark { background: var(--bg-alt) !important; color: var(--text) !important; }

.ai-section-title { text-align: center; margin-bottom: 3rem; }
.ai-section-title h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    /* remove old gradient text */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}
.ai-section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Cards (generic) ===== */
.ai-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
    position: relative;
}
.ai-card::before { display: none; }
.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ai-card-icon {
    width: 60px; height: 60px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: #fff;
}
.ai-card h3, .ai-card h4, .ai-card h5 { color: var(--text); }
.ai-card p { color: var(--text-secondary); }

/* ===== Case Study Cards ===== */
.case-study-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
}
.case-study-card::before { display: none; }
.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.case-study-card .card-body { padding: 1.5rem; }
.case-study-card .card-title { color: var(--text); }
.case-study-card .card-text { color: var(--text-secondary); }
.case-study-tag {
    background: var(--bg-alt);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: .5rem;
    box-shadow: none;
}

/* ===== Blog Cards ===== */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card::before { display: none; }
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card img { height: 200px; object-fit: cover; width: 100%; }
.blog-card .card-body {
    padding: 1.5rem;
    display: flex; flex-direction: column; flex-grow: 1;
}
.blog-card .card-title { color: var(--text) !important; }
.blog-card .card-text { color: var(--text-secondary) !important; }
.blog-card .mt-auto { margin-top: auto !important; }

.blog-meta { font-size: .85rem; color: var(--text-muted); }
.blog-meta a { color: var(--primary); }

/* ===== Article (blog detail) ===== */
.article-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: var(--shadow) !important;
}
.article-card::before { display: none !important; }
.article-card:hover { box-shadow: var(--shadow-lg) !important; }
.article-card > * { position: relative; z-index: 1; }

.article-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text);
}
.article-content h1,.article-content h2,.article-content h3,
.article-content h4,.article-content h5,.article-content h6 {
    color: var(--text) !important;
    margin-top: 2rem; margin-bottom: 1rem;
}
.article-content h2 { font-size: 1.8rem; color: var(--primary) !important; }
.article-content strong, .article-content b { color: var(--text) !important; font-weight: 700; }
.article-content a { color: var(--primary); }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    color: var(--text-secondary);
}
.article-content code {
    background: var(--bg-alt);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .9em;
}
.article-content pre {
    background: var(--bg-alt);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow-x: auto;
}
.article-content pre code { background: none; color: var(--text); }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.article-content ul { list-style: disc; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin: 1rem 0; }
.article-content li { margin-bottom: .4rem; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-content th { background: var(--primary); color: #fff; padding: .6rem 1rem; text-align: left; }
.article-content td { padding: .6rem 1rem; border-bottom: 1px solid var(--border); }

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.testimonial-stars { color: #f59e0b; margin-bottom: .75rem; font-size: 1.1rem; }
.testimonial-content { color: var(--text-secondary); font-style: italic; margin-bottom: 1rem; }
.testimonial-author { font-weight: 600; color: var(--text); }
.testimonial-company { color: var(--text-muted); font-size: .85rem; }

.testimonials-carousel-container {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: 12px;
}
.testimonials-carousel {
    display: flex;
    height: 100%;
    width: max-content;
    animation: infinite-scroll 28s linear infinite;
}
.testimonial-slide {
    min-width: 320px; flex-shrink: 0;
    padding: 0 16px; display: flex; align-items: center;
}
.testimonial-slide .testimonial-card { width: 100%; }
.testimonials-carousel-container:hover .testimonials-carousel { animation-play-state: paused; }
@keyframes infinite-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-320px * 5)); }
}

/* ===== Footer ===== */
.ai-footer {
    background: var(--bg-alt) !important;
    border-top: 1px solid var(--border);
    color: var(--text);
}
.ai-footer h5, .ai-footer h6 { color: var(--text); }
.ai-footer p, .ai-footer .text-muted { color: var(--text-muted) !important; }
.ai-footer a.text-muted { transition: color .2s; }
.ai-footer a.text-muted:hover { color: var(--primary) !important; }

/* ===== Breadcrumbs ===== */
.breadcrumb-item a { color: var(--primary) !important; }
.breadcrumb-item.active { color: var(--text-muted) !important; }

/* ===== Forms ===== */
.form-control, .form-select {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
    background: #fff;
    color: var(--text);
}

/* ===== Pagination ===== */
.pagination .page-link {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
}
.pagination .page-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Misc utilities ===== */
.ai-glow { animation: glow 2s ease-in-out infinite; }
@keyframes glow {
    0%,100% { box-shadow: 0 0 5px rgba(79,70,229,.2); }
    50%     { box-shadow: 0 0 18px rgba(124,58,237,.35); }
}

/* Page header padding (to push content below fixed navbar) */
h1.display-4.fw-bold { margin-top: 2rem !important; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .ai-hero { padding: 110px 0 60px; min-height: auto; }
    .ai-hero h1 { font-size: 2.4rem; }

    /* Mobile nav: underline aligned to text start, not centered */
    .navbar-nav .nav-link { margin: 0; padding: .6rem 0; }
    .navbar-nav .nav-link::after {
        left: 0;
        transform: none;
        bottom: 2px;
    }
    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after { width: 40px; }

    /* Spacing between nav and CTA button */
    #navbarNav .d-flex { margin-top: .75rem; }
}
@media (max-width: 768px) {
    .ai-hero h1 { font-size: 2rem; }
    .ai-section { padding: 50px 0; }
    .ai-section-title h2 { font-size: 1.8rem; }
    .ai-hero-graphic-3d { height: 200px; }
    .floating-icon { width: 38px; height: 38px; font-size: .95rem; border-radius: 10px; }
    .fi-mini { width: 32px; height: 32px; font-size: .85rem; }
    .case-detail-graphic { width: 160px; height: 160px; }
    .case-detail-graphic .fab.fa-telegram { font-size: 3.5rem !important; }
    .testimonials-carousel { animation-duration: 18s; }
    .article-card { padding: 1rem !important; }
    .article-content { font-size: 1rem; line-height: 1.6; }
}
@media (max-width: 576px) {
    .ai-hero h1 { font-size: 1.7rem; }
    .ai-section-title h2 { font-size: 1.5rem; }
}

/* ===== Modern Hero Section ===== */
.hero-modern {
    background: var(--gradient-hero);
    padding: 140px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-modern .container {
    position: relative;
    z-index: 2;
}

/* Hero Decorative Orbs */
.hero-orb-1,
.hero-orb-2,
.hero-orb-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -100px;
    right: -100px;
    animation: orb-float-1 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
    bottom: -50px;
    left: -50px;
    animation: orb-float-2 10s ease-in-out infinite;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    top: 40%;
    left: 30%;
    animation: orb-float-3 12s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -20px) scale(1.05); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -30px) scale(1.15); }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.hero-badge:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

/* Hero Content Layout */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text-col {
    flex: 1;
    max-width: 600px;
}

.hero-visual-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Title Gradient */
.hero-title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Card Stack */
.hero-card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 350px;
    perspective: 1000px;
}

.hero-card {
    position: absolute;
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:nth-child(1) {
    top: 0;
    left: 0;
    z-index: 3;
    transform: translateY(0) rotate(-3deg);
}

.hero-card:nth-child(2) {
    top: 40px;
    left: 60px;
    z-index: 2;
    transform: translateY(0) rotate(2deg);
}

.hero-card:nth-child(3) {
    top: 80px;
    left: 120px;
    z-index: 1;
    transform: translateY(0) rotate(-1deg);
}

.hero-card-stack:hover .hero-card:nth-child(1) {
    transform: translateY(-10px) rotate(-5deg);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
}

.hero-card-stack:hover .hero-card:nth-child(2) {
    transform: translateY(-5px) rotate(3deg);
}

.hero-card-stack:hover .hero-card:nth-child(3) {
    transform: translateY(0) rotate(-2deg);
}

.hero-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}

/* Hero Connector */
.hero-connector {
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    left: 50%;
    transform: translateX(-50%);
    animation: connector-pulse 2s ease-in-out infinite;
}

.hero-connector::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

@keyframes connector-pulse {
    0%, 100% { opacity: 0.5; height: 40px; }
    50% { opacity: 1; height: 50px; }
}

/* Stat Pill */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-pill:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-pill .stat-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
}

.stat-pill .stat-value {
    font-weight: 700;
    color: var(--text);
    font-size: 1.125rem;
}

.stat-pill .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Modern Buttons ===== */
.btn-glow {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
    color: #fff;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-outline-gradient {
    position: relative;
    background: var(--card-bg);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.btn-outline-gradient:hover {
    background: var(--gradient-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-white {
    background: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: var(--primary);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title-modern.gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Light version for dark backgrounds */
.section-header-light .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.section-header-light .section-title-modern {
    color: #fff;
}

.section-header-light .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Bento Grid ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.2);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    pointer-events: none;
}

.bento-decoration.top-right {
    top: -50px;
    right: -50px;
}

.bento-decoration.bottom-left {
    bottom: -50px;
    left: -50px;
}

/* ===== Case Studies Modern ===== */
.cases-gradient-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

.case-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.case-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.case-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card-modern:hover .case-card-image img {
    transform: scale(1.05);
}

.case-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.case-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-card-content h3,
.case-card-content h4 {
    color: var(--text);
    margin-bottom: 0.75rem;
}

.case-card-content p {
    color: var(--text-secondary);
    flex: 1;
}

/* ===== Blog Section Modern ===== */
.blog-featured-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: all 0.4s ease;
}

.blog-featured-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-featured-card .blog-image {
    height: 100%;
    min-height: 300px;
}

.blog-featured-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured-card .blog-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-horizontal-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: all 0.3s ease;
}

.blog-horizontal-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.blog-horizontal-card .blog-image {
    width: 200px;
    flex-shrink: 0;
}

.blog-horizontal-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-horizontal-card .blog-content {
    padding: 1.25rem;
    flex: 1;
}

.blog-section-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

/* ===== Testimonials Modern ===== */
.testimonials-orb-1,
.testimonials-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.testimonials-orb-1 {
    width: 350px;
    height: 350px;
    background: var(--gradient-primary);
    top: -100px;
    left: -100px;
}

.testimonials-orb-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #EC4899 0%, #7C3AED 100%);
    bottom: -50px;
    right: -50px;
}

.testimonial-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card-modern .quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.15;
}

.testimonial-card-modern .testimonial-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card-modern .testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar-placeholder {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-card-modern .author-name {
    font-weight: 600;
    color: var(--text);
}

.testimonial-card-modern .author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== CTA Section ===== */
.cta-gradient {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-gradient .container {
    position: relative;
    z-index: 2;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.cta-orb-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: 10%;
}

.cta-orb-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: 5%;
}

.cta-gradient h2,
.cta-gradient h3 {
    color: #fff;
}

.cta-gradient p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Responsive Styles for New Components ===== */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-text-col {
        max-width: 100%;
        text-align: center;
    }

    .hero-visual-col {
        width: 100%;
    }

    .hero-card-stack {
        max-width: 100%;
        height: 300px;
    }

    .hero-card {
        width: 220px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
    }

    .blog-section-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-card .blog-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-orb-1,
    .hero-orb-2,
    .hero-orb-3 {
        transform: scale(0.6);
    }

    .hero-card-stack {
        height: 250px;
    }

    .hero-card {
        width: 180px;
        padding: 1rem;
    }

    .hero-card:nth-child(2) {
        left: 40px;
    }

    .hero-card:nth-child(3) {
        left: 80px;
    }

    .section-title-modern {
        font-size: 1.875rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }

    .blog-horizontal-card {
        flex-direction: column;
    }

    .blog-horizontal-card .blog-image {
        width: 100%;
        height: 150px;
    }

    .cta-gradient {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero-card-stack {
        height: 220px;
    }

    .hero-card {
        width: 150px;
        padding: 0.875rem;
    }

    .hero-card:nth-child(2) {
        left: 30px;
        top: 30px;
    }

    .hero-card:nth-child(3) {
        left: 60px;
        top: 60px;
    }

    .hero-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .section-title-modern {
        font-size: 1.5rem;
    }

    .bento-item {
        padding: 1.5rem;
        border-radius: 16px;
    }
}

/* ===== Missing CSS Classes for Home Template ===== */

/* Hero Title */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: fit-content;
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stats .stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: var(--shadow);
}

.hero-stats .stat-number {
    font-weight: 700;
    color: var(--text);
    font-size: 1.25rem;
}

.hero-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--bg);
    position: relative;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Text Utility */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bento Icon */
.bento-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.25rem;
}

/* Bento Title */
.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

/* Bento Text */
.bento-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Cases Section */
.cases-section {
    padding: 80px 0;
    background: var(--bg-alt);
    position: relative;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Case Card */
.case-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Case Card Image */
.case-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-card-image img {
    transform: scale(1.05);
}

/* Case Card Placeholder */
.case-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Case Card Overlay */
.case-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

/* Case Card Content */
.case-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Case Tag */
.case-tag {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Case Card Title */
.case-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Case Card Text */
.case-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

/* Case Metric */
.case-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.case-metric i {
    font-size: 0.75rem;
}

/* Case Card Link */
.case-card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.case-card-link:hover {
    color: var(--primary-hover);
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: var(--bg);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

/* Blog Featured */
.blog-featured {
    display: flex;
    flex-direction: column;
}

/* Blog Featured Card */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
}

.blog-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Blog Featured Image */
.blog-featured-image {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured-card:hover .blog-featured-image img {
    transform: scale(1.05);
}

/* Blog Featured Placeholder */
.blog-featured-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Blog Featured Content */
.blog-featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-meta .blog-category {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Blog Featured Title */
.blog-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Blog Featured Excerpt */
.blog-featured-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Blog Featured Footer */
.blog-featured-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-featured-footer .blog-author,
.blog-featured-footer .blog-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-tags .blog-tag {
    background: var(--bg-alt);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Blog List (sidebar) */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Blog Horizontal Card */
.blog-horizontal-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-horizontal-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.blog-horizontal-card .blog-image {
    width: 120px;
    flex-shrink: 0;
    height: 100px;
    overflow: hidden;
}

.blog-horizontal-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-horizontal-card .blog-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-horizontal-card .blog-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.blog-horizontal-card .blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Styles for New Classes */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured-card {
        grid-template-columns: 1fr;
    }

    .blog-featured-image {
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .blog-horizontal-card {
        flex-direction: column;
    }

    .blog-horizontal-card .blog-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-section,
    .cases-section,
    .blog-section {
        padding: 50px 0;
    }
}

/* ===== Hero Logo Transfer Animation ===== */
.hero-logo-transfer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    width: 100%;
    min-height: 280px;
    padding: 2rem 0;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
}

.hero-logo-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-logo-icon:hover {
    transform: scale(1.08);
}

.hero-logo-telegram .hero-logo-icon {
    background: linear-gradient(135deg, #0088cc, #29b6f6);
    color: #fff;
}

.hero-logo-max .hero-logo-icon {
    background: var(--gradient-primary);
    color: #fff;
}

.hero-logo-icon--img {
    padding: 0;
    overflow: hidden;
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.hero-logo-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* Transfer Arrow */
.hero-transfer-arrow {
    font-size: 1.8rem;
    color: var(--primary);
    z-index: 2;
    animation: arrow-pulse 2s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes arrow-pulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(6px); }
}

/* Flying Transfer Icons */
.hero-transfer-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.transfer-icon {
    position: absolute;
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    opacity: 0;
    animation: fly-to-max 4s ease-in-out infinite;
}

.transfer-icon.ti-1 {
    top: 10%;
    animation-delay: 0s;
}

.transfer-icon.ti-2 {
    top: 30%;
    animation-delay: -0.7s;
}

.transfer-icon.ti-3 {
    top: 55%;
    animation-delay: -1.4s;
}

.transfer-icon.ti-4 {
    top: 75%;
    animation-delay: -2.1s;
}

.transfer-icon.ti-5 {
    top: 20%;
    animation-delay: -2.8s;
}

.transfer-icon.ti-6 {
    top: 65%;
    animation-delay: -3.5s;
}

@keyframes fly-to-max {
    0% {
        left: 10%;
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    15% {
        opacity: 0.35;
        transform: scale(1) rotate(0deg);
    }
    50% {
        left: 50%;
        opacity: 0.35;
        transform: scale(1.1) rotate(5deg) translateY(-10px);
    }
    85% {
        opacity: 0.35;
        transform: scale(1) rotate(0deg);
    }
    100% {
        left: 85%;
        opacity: 0;
        transform: scale(0.5) rotate(10deg);
    }
}

/* ===== Case Card Clickable + Full-Width Link ===== */
.case-card {
    position: relative;
    cursor: pointer;
}

.case-card-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 12px;
    margin-top: auto;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.case-card-link:hover {
    background: rgba(79, 70, 229, 0.15);
}

.case-card-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* ===== Responsive Hero Transfer ===== */
@media (max-width: 768px) {
    .hero-logo-transfer {
        gap: 1rem;
        min-height: 200px;
    }

    .hero-logo-icon {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
        border-radius: 18px;
    }

    .hero-transfer-arrow {
        font-size: 1.3rem;
    }

    .transfer-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .hero-logo-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-logo-transfer {
        gap: 0.5rem;
        min-height: 160px;
    }

    .hero-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        border-radius: 14px;
    }

    .transfer-icon {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
}
