/* Local Fonts - Poppins */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-v22-latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-400-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-v22-latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-v22-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-700-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/poppins-v22-latin-800.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/poppins-800-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/poppins-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Local Fonts - JetBrains Mono (variable) */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/jetbrainsmono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/jetbrainsmono-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tech-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(103, 126, 234, 0.3);
    --card-bg: rgba(102, 126, 234, 0.1);
    --card-border: rgba(103, 126, 234, 0.3);
    --primary: #667eea;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --accent: #f43f5e;
    --neon: #06f7ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: #f8fafc;
    color: #1e293b;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Vanta Background - optimized opacity */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.08; /* Reduced from 0.15 for less distraction */
    pointer-events: none; /* Performance optimization */
}

/* Glass morphism effects */
.glass {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(103, 126, 234, 0.2);
}

.card-dark {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    color: #1e293b; /* Improved contrast from #475569 */
}

/* Neon effects */
.neon-text {
    text-shadow: 0 0 5px var(--neon), 0 0 10px var(--neon);
}

.neon-btn {
    box-shadow: 0 0 10px var(--neon), 0 0 20px rgba(6, 247, 255, 0.3);
    transition: all 0.3s ease;
}

.neon-btn:hover {
    box-shadow: 0 0 15px var(--neon), 0 0 30px rgba(6, 247, 255, 0.5);
    transform: translateY(-2px);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(103, 126, 234, 0.2);
    padding: 15px 20px;
}

header.header-scrolled {
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-image {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #1e293b;
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(10px);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e293b;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(103, 126, 234, 0.2);
    transition: right 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1200;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(103, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #667eea;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.mobile-menu-close:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

.mobile-menu-logo .logo-image {
    height: 35px;
}

.mobile-menu-content {
    flex: 1;
    padding: 2rem 1.5rem;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li {
    margin-bottom: 0rem;
}

.mobile-menu ul li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mobile-menu ul li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(10px);
}

.mobile-menu-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    min-width: 30px;
}

.mobile-menu-footer {
    padding: 2rem;
    border-top: 1px solid rgba(103, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.05);
}

.mobile-telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mobile-telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding-top: 180px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: slideInFromLeft 1s ease-out;
}

.hero-text h1 .gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: slideInFromLeft 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary-gradient);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    animation: slideInFromLeft 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.code-snippet {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    color: #475569;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    animation: slideInFromRight 1s ease-out;
}

.code-snippet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(26, 26, 46, 0.9));
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.code-snippet .dots {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.code-snippet .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; animation-delay: 0.3s; }
.dot.green { background: #22c55e; animation-delay: 0.6s; }

.code-content {
    margin-top: 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    overflow-x: auto;
}

/* Code typing: lines hidden from first paint via .js class (no flash) */
.js .code-snippet .code-content > div {
    visibility: hidden;
    min-height: 1.8em;
}
.js .code-snippet .code-content > div.is-typing,
.js .code-snippet .code-content > div.typed {
    visibility: visible;
}

/* Inner span clips text during typing animation */
.code-line-inner {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    vertical-align: top;
}
.typed .code-line-inner {
    width: auto;
    overflow: visible;
}

/* Blinking caret during typing */
.is-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: rgba(96, 165, 250, 0.9);
    margin-left: 2px;
    animation: caretBlink 0.8s step-end infinite;
    vertical-align: -0.1em;
}

@keyframes codeTyping {
    from { width: 0; }
    to { width: var(--line-width); }
}

@keyframes caretBlink {
    50% { opacity: 0; }
}

.keyword { color: #a855f7; font-weight: 600; }
.string { color: #22c55e; }
.comment { color: #64748b; font-style: italic; }
.function { color: #60a5fa; font-weight: 500; }

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1e293b;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Services */
.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.service-card {
    padding: 3rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
    border: 2px solid var(--card-border);
    color: #475569;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Process */
.process {
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 3;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    position: relative;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(102, 126, 234, 0.1); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    color: #475569;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    z-index: 3;
    position: relative;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.step-content p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #475569;
}


.technologies {
    color: #1e293b;
}

#technologies .section-subtitle {
    max-width: 840px;
    text-wrap: balance;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.tech-item {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.tech-item i {
    font-size: 2.5rem;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.tech-item span {
    font-weight: 600;
    color: #475569;
    font-size: 1.1rem;
    align-self: center;
}


.team {
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 2.5rem;
}

.team-grid-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}


.team-member {
    text-align: center;
    padding: 0;
    border-radius: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    min-height: auto;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
}

.team-photo-container {
    position: relative;
    padding: 1rem 1rem 0.5rem;
    z-index: 2;
}

.team-photo-modern {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto;
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    padding: 2px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.team-photo-modern::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: white;
    z-index: -1;
}

.team-member:hover .team-photo-modern {
    transform: scale(1.1) rotateZ(5deg);
    box-shadow: 0 20px 45px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #667eea 100%);
}

.team-info {
    padding: 0.8rem 1.2rem 1.5rem;
    position: relative;
    z-index: 2;
}

.team-member h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
    position: relative;
    text-align: left;
}

.team-member .role {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.team-member p {
    line-height: 1.6;
    color: #64748b;
    font-size: 0.95rem;
    text-align: left;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-member:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.social-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.advantages {
    color: #1e293b;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.advantage-item {
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: #475569;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

.advantage-item i {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.advantage-item h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.advantage-item p {
    line-height: 1.7;
    font-size: 1.1rem;
}


.contact {
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 1.2rem;
    background: var(--primary-gradient);
    margin-top: 3rem;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

.contact-btn i {
    font-size: 1.5rem;
}


footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    z-index: 10;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 105px;
    object-fit: contain;
}

.footer-section h3 {
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
}


@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    animation: fadeInUp 1s ease-in-out;
}

.slide-up {
    animation: slideInFromLeft 0.8s ease-out;
}


.photo-block {
    position: relative;
    padding: 6rem 0;
    text-align: center;
}

.photo-container {
    max-width: 85%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
    position: relative;
    aspect-ratio: 16 / 9;
}

.photo-container img {
    width: 100%;
    height: 100%;
    max-height: 42em;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-container:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: white;
    padding: 2rem;
    text-align: left;
}

.photo-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.photo-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .team-grid-bottom {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .services-grid {
        gap: 2rem;
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-content {
        gap: 3rem;
    }
    
    .code-snippet {
        padding: 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .mobile-menu-logo .logo-image {
        height: 30px;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    header {
        padding: 10px 0px 10px 0px;
    }
    
    nav {
        padding: 0;
    }
    
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .code-snippet {
        padding: 1.5rem;
        font-size: 0.85rem;
        border-radius: 12px;
    }
    
    .code-content {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .code-snippet .dots {
        top: 15px;
        left: 15px;
    }
    
    .code-snippet .dot {
        width: 12px;
        height: 12px;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .process-step {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .photo-container {
        max-width: 100%;
        margin: 0 auto;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
        position: relative;
    }
    
    .step-number {
        position: relative;
        margin-bottom: 1.5rem;
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
    
    .step-content {
        margin: 0;
        padding: 2rem 1.5rem;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    .advantage-item {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .advantage-item h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .advantage-item i {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .advantage-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 1.5rem 1rem;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
    
    .tech-item span {
        font-size: 1rem;
    }
    
    .team-grid,
    .team-grid-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.15rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }

    .faq-q {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-a {
        padding: 0 1.25rem 1rem;
    }

    .faq-a p {
        font-size: 0.95rem;
    }
    
    .pricing-grid {
        gap: 1.5rem;
    }
    
    .pricing-card h3 {
        font-size: 1.5rem;
    }
    
    .pricing-features li {
        font-size: 0.95rem;
    }
    
    .contact-btn {
        padding: 1.2rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .contact-btn i {
        font-size: 1.2rem;
    }
    
    .response-time {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .photo-container img {
        height: 100%;
    }
    
    .photo-overlay {
        padding: 1.2rem;
    }
    
    .photo-overlay h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .photo-overlay p {
        font-size: 0.9rem;
        display: block;
    }
}

.error-page-section {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: calc(100vh - 160px); 
        padding-top: 100px; 
        padding-bottom: 60px;
}
    
.error-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
}
    
.error-content .error-title {
        font-size: 12rem; 
        font-weight: 900;
        line-height: 1;
        margin-bottom: 20px;
    color: var(--primary);
}
    
.error-content h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    color: var(--primary);
}
    
.error-content p {
        font-size: 1.5rem;
    color: #64748b;
        margin-bottom: 30px;
        line-height: 1.6;
}
    
.error-content .cta-button { 
        margin-top: 40px;
        padding: 12px 30px;
        font-size: 1rem;
}
    

.process-image {
        display: none;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.7rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.2rem 0.8rem;
    }
    
    .tech-item i {
        font-size: 1.8rem;
    }
    
    .tech-item span {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .advantage-item {
        padding: 1.2rem 0.8rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .advantage-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .advantage-item p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .advantage-item i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .price {
        font-size: 2rem;
    }

    .stat-item {
        padding: 1.2rem 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 0.35rem;
    }

    .stat-label {
        font-size: 0.9rem;
        line-height: 1.35;
    }
}

/* New Sections Styles */

/* Stats Section */
.stats {
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* JS-only: hide until counter animation fires */
.js .stat-number {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .stat-number.animate-stat {
    opacity: 1;
    transform: translateY(0);
}

.stat-label {
    font-size: 1.1rem;
    color: #334155;
    font-weight: 500;
}

/* Pricing Hint Section */
.pricing-hint {
    padding: 80px 20px;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.pricing-card.featured {
    border: 2px solid #667eea;
    background: rgba(102, 126, 234, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.7rem 0;
    font-size: 1rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    background: #ffffff;
}

.faq-section {
    padding: 90px 20px;
    background: rgba(248, 250, 252, 0.6);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item-new {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item-new:hover {
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

.faq-item-new[open] {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.1);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.2s ease;
    user-select: none;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::marker {
    display: none;
    content: '';
}

.faq-q:hover {
    color: #667eea;
}

.faq-chevron {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item-new[open] .faq-chevron {
    transform: rotate(180deg);
    color: #667eea;
}

.faq-a {
    padding: 0 1.5rem 1.25rem;
    animation: faqFadeIn 0.3s ease;
}

.faq-a p {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.faq-a a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-a a:hover {
    border-bottom-color: #667eea;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.faq-question i {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.faq-question h3 {
    font-size: 1.3rem;
    color: #1e293b;
}

.faq-answer p {
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Section Enhancements */

/* Geography Section — Modern Redesign */
.geography {
    padding: 80px 20px;
    background: #ffffff;
}

/* Geography Section (Home) — Updated layout */
.geography-new {
    padding: 90px 20px;
    background: rgba(248, 250, 252, 0.6);
}

.geography-new .geo-header {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 2.5rem;
}

.geography-new .geo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.18);
    margin-bottom: 1rem;
}

.geography-new .geo-panels {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1.6rem;
    margin-top: 2.5rem;
}

.geography-new .geo-panel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 2.25rem;
    border: 1px solid rgba(102, 126, 234, 0.14);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.geography-new .geo-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.geography-new .geo-panel-primary::before {
    background: var(--primary-gradient);
}

.geography-new .geo-panel-accent::before {
    background: var(--tech-gradient);
}

.geography-new .geo-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 60px rgba(102, 126, 234, 0.14);
    border-color: rgba(102, 126, 234, 0.22);
}

.geography-new .geo-panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.geography-new .geo-panel-primary .geo-panel-icon {
    background: rgba(102, 126, 234, 0.12);
    color: #4f46e5;
}

.geography-new .geo-panel-accent .geo-panel-icon {
    background: rgba(79, 172, 254, 0.14);
    color: #0284c7;
}

.geography-new .geo-panel h3 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 1.1rem;
    font-weight: 800;
}

.geography-new .geo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.geography-new .geo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.07);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.geography-new .geo-panel-primary .geo-chip {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.14);
}

.geography-new .geo-panel-accent .geo-chip {
    background: rgba(79, 172, 254, 0.08);
    border-color: rgba(79, 172, 254, 0.14);
}

.geography-new .geo-chip i {
    font-size: 0.9rem;
    opacity: 0.75;
}

.geography-new .geo-tools {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.6rem;
}

.geography-new .geo-tool {
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.12);
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.geography-new .geo-tool:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.geography-new .geo-tool-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.geography-new .geo-tool-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.geography-new .geo-tool-text strong {
    font-size: 0.98rem;
    color: #0f172a;
    font-weight: 700;
}

.geography-new .geo-tool-text span {
    font-size: 0.86rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.geo-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.geo-card {
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.geo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.geo-card-main {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.geo-card-main::before {
    background: var(--primary-gradient);
}

.geo-card-accent {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.geo-card-accent::before {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

.geo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.geo-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.geo-card-main .geo-card-icon {
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}

.geo-card-accent .geo-card-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.geo-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.geo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.geo-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.geo-card-main .geo-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.geo-card-main .geo-tag:hover {
    background: rgba(102, 126, 234, 0.18);
}

.geo-card-accent .geo-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.geo-card-accent .geo-tag:hover {
    background: rgba(16, 185, 129, 0.18);
}

.geo-tag i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.geo-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.geo-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.geo-feature:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.geo-feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.geo-feature-text {
    display: flex;
    flex-direction: column;
}

.geo-feature-text strong {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 600;
}

.geo-feature-text span {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.1rem;
}

/* Contact Section Enhancements */
.response-time {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: #334155;
    font-weight: 500;
}

.contact-email {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.05rem;
    color: #334155;
    font-weight: 500;
}

.contact-email a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Pulse animation for CTA */
.pulse {
    animation: pulse 2s infinite;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.calc-step {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.calc-label {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.calc-options-wide {
    grid-template-columns: repeat(3, 1fr);
}

.calc-option {
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.calc-option i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.calc-option span {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.05rem;
}

.calc-option:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.calc-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.calc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.calc-checkbox,
.calc-radio {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-checkbox:hover,
.calc-radio:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.calc-checkbox input,
.calc-radio input {
    display: none;
}

.checkbox-custom,
.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom {
    border-radius: 50%;
}

.calc-checkbox input:checked ~ .checkbox-custom,
.calc-radio input:checked ~ .radio-custom {
    background: var(--primary-gradient);
    border-color: #667eea;
}

.calc-checkbox input:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.calc-radio input:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.checkbox-label,
.radio-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.checkbox-label strong,
.radio-label strong {
    color: #1e293b;
    font-size: 1rem;
}

.checkbox-label small,
.radio-label small {
    color: #64748b;
    font-size: 0.9rem;
}

/* Disabled addon styles */
.calc-checkbox.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: rgba(148, 163, 184, 0.2);
}

.calc-checkbox.disabled:hover {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: none;
    transform: none;
}

.calc-checkbox.disabled .checkbox-custom {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.calc-checkbox.disabled .checkbox-label strong {
    color: #94a3b8;
}

.calc-checkbox.disabled .checkbox-label small {
    color: #cbd5e1;
}

.restriction-hint {
    display: none;
    color: #ef4444 !important;
    font-size: 0.85rem !important;
    margin-top: 0.25rem;
}

.calc-checkbox.disabled .restriction-hint {
    display: block;
}

@media (max-width: 768px) {
    .calc-checkboxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .calc-radio-group {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .calc-checkbox,
    .calc-radio {
        padding: 0.8rem;
        gap: 0.7rem;
    }
    
    .checkbox-label strong,
    .radio-label strong {
        font-size: 0.9rem;
    }
    
    .checkbox-label small,
    .radio-label small {
        font-size: 0.75rem;
    }
    
    .checkbox-custom,
    .radio-custom {
        width: 20px;
        height: 20px;
    }
}

.calculator-result {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-header i {
    font-size: 2rem;
    color: #667eea;
}

.result-header h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0;
}

.result-price {
    text-align: center;
    padding: 2rem 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    margin-bottom: 2rem;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-currency {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-left: 0.5rem;
}

.result-note {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.result-note i {
    color: #667eea;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.result-note p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.calc-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.calc-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Responsive for new sections */
@media (min-width: 769px) and (max-width: 1024px) {
    .calc-options-wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 60px 10px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-result {
        position: static;
        /* Результат теперь отображается внизу после всех опций */
    }
    
    .calc-step {
        padding: 1.5rem 1rem;
    }
    
    .calc-options,
    .calc-options-wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .calc-option {
        padding: 1rem 0.7rem;
    }
    
    .calc-option i {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .calc-option span {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .result-card {
        padding: 2rem 1.5rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .price-currency {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 40px 5px;
    }
    
    .calc-step {
        padding: 1.2rem 0.8rem;
    }
    
    .calc-label {
        font-size: 1.1rem;
    }
    
    .calc-options,
    .calc-options-wide {
        gap: 0.6rem;
    }
    
    .calc-option {
        padding: 0.9rem 0.5rem;
    }
    
    .calc-option i {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .calc-option span {
        font-size: 0.8rem;
        line-height: 1.15;
    }
    
    .calc-checkboxes,
    .calc-radio-group {
        gap: 0.6rem;
    }
    
    .calc-checkbox,
    .calc-radio {
        padding: 0.7rem 0.6rem;
        gap: 0.6rem;
    }
    
    .checkbox-label strong,
    .radio-label strong {
        font-size: 0.85rem;
    }
    
    .checkbox-label small,
    .radio-label small {
        font-size: 0.7rem;
        line-height: 1.2;
    }
    
    .checkbox-custom,
    .radio-custom {
        width: 18px;
        height: 18px;
    }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.portfolio-tags .tag {
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    width: fit-content;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    gap: 0.75rem;
    transform: translateX(4px);
}

.portfolio-link i {
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* Legal Pages (Privacy & Terms) */
.legal-page {
    padding-top: 140px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(103, 126, 234, 0.2);
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(103, 126, 234, 0.2);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul,
.legal-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #475569;
}

.legal-section li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.legal-navigation {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(103, 126, 234, 0.2);
}

.legal-navigation .cta-button.secondary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    box-shadow: none;
}

.legal-navigation .cta-button.secondary:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(103, 126, 234, 0.3);
    padding: 1.25rem 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.cookie-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-text a:hover {
    color: #a855f7;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-btn-accept {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.cookie-btn-more {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid rgba(226, 232, 240, 0.3);
}

.cookie-btn-more:hover {
    background: rgba(226, 232, 240, 0.1);
    border-color: rgba(226, 232, 240, 0.5);
}

.cookie-btn-reject {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid rgba(226, 232, 240, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(226, 232, 240, 0.1);
    border-color: rgba(226, 232, 240, 0.5);
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 120px;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-navigation {
        flex-direction: column;
    }
    
    .legal-navigation .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-text p {
        font-size: 0.875rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio {
        padding: 3rem 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.25rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.875rem;
    }
}

/* Accessibility: disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .code-snippet .code-content > div {
        visibility: visible;
    }

    .code-line-inner {
        width: auto;
        overflow: visible;
    }

    .js .stat-number {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   BLOG STYLES
   ======================================== */

/* Inline Breadcrumbs (Blog & Article pages) */
.breadcrumbs-inline {
    margin-bottom: 1.5rem;
}

.breadcrumbs-inline .breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    list-style: none;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
    padding: 0;
}

.breadcrumbs-inline .breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.breadcrumbs-inline .breadcrumb-list li:not(:last-child)::after {
    content: '•';
    color: #94a3b8;
    margin-left: 0.45rem;
}

.breadcrumbs-inline .breadcrumb-list a {
    color: #4f46e5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.breadcrumbs-inline .breadcrumb-list a:hover {
    color: #4338ca;
    border-bottom-color: rgba(79, 70, 229, 0.35);
}

.breadcrumbs-inline .breadcrumb-list li[aria-current="page"] {
    color: #0f172a;
    font-weight: 600;
}

/* Blog Hero Section */
.blog-hero {
    padding: 120px 20px 56px;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.14);
    text-align: center;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Article Hero Section */
.article-hero {
    padding: 120px 20px 56px;
    background: rgba(248, 250, 252, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.14);
}

.article-hero .container {
    max-width: 960px;
}

.article-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.article-hero-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.article-hero-meta i {
    margin-right: 0.3rem;
}

/* Legacy Breadcrumbs (keep for backward compat) */
.breadcrumbs {
    padding: 100px 20px 0;
    background: transparent;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: #94a3b8;
}

.breadcrumb-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #1e293b;
    font-weight: 500;
}

/* Blog Listing Page */
.blog-listing {
    padding: 50px 20px 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.06);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.blog-card-content h2 {
    font-size: 1.3rem;
    color: #1e293b;
    margin: 0.8rem 0;
    line-height: 1.4;
}

.blog-card-content p {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #64748b;
}

.blog-card-date i,
.blog-card-tags .tag {
    margin-right: 0.3rem;
}

.blog-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.blog-card-tags .tag {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card-read {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-read {
    gap: 0.8rem;
}

/* Blog Article Page */
.blog-article {
    padding: 40px 20px 90px;
    background: transparent;
}

.article-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.25rem;
    overflow-wrap: anywhere;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(102, 126, 234, 0.14);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 1.25rem 0;
}

.article-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
    flex-wrap: wrap;
}

.article-header i {
    margin-right: 0.3rem;
}

.article-content h1 {
    font-size: 2.2rem;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.article-section {
    margin-bottom: 2.5rem;
}

.article-section h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.article-section h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 1.5rem 0 0.5rem;
}

.article-section p {
    color: #334155;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.article-section ul,
.article-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-section li {
    color: #334155;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.article-section a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    word-break: break-word;
}

.article-section a:hover {
    border-bottom-color: #667eea;
}

/* Article Tables */
.article-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    -webkit-overflow-scrolling: touch;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 640px;
}

.article-table thead {
    background: rgba(102, 126, 234, 0.1);
}

.article-table th {
    padding: 1rem;
    text-align: left;
    color: #1e293b;
    font-weight: 600;
    white-space: nowrap;
}

.article-table td {
    padding: 0.8rem 1rem;
    color: #334155;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.article-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Article CTA */
.article-cta {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 2rem;
}

.article-cta h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.article-cta p {
    color: #334155;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-outline {
    background: transparent !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
    box-shadow: none !important;
}

.cta-button-outline:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

/* Blog card wrapper for semantic <article> */
.blog-card-wrapper {
    display: contents;
}

/* Blog Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .article-content {
        padding: 1.75rem;
        max-width: 100%;
    }

    .article-content h1 {
        font-size: 1.85rem;
    }

    .article-table {
        min-width: 580px;
    }

    .blog-hero-title {
        font-size: 2.4rem;
    }

    .article-hero-title {
        font-size: 2.2rem;
    }

    .geo-grid {
        grid-template-columns: 1fr;
    }

    .geo-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .geography-new .geo-panels {
        grid-template-columns: 1fr;
    }

    .geography-new .geo-tools {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog Mobile */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 1.25rem;
    }

    .article-content h1 {
        font-size: 1.6rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-section h2 {
        font-size: 1.3rem;
    }

    .article-cta {
        padding: 1.5rem;
    }

    .article-cta-buttons {
        flex-direction: column;
    }

    .article-cta-buttons .cta-button,
    .article-cta-buttons .cta-button-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .blog-hero {
        padding: 100px 20px 40px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .article-hero {
        padding: 100px 20px 35px;
    }

    .article-hero-title {
        font-size: 1.8rem;
    }

    .article-table {
        min-width: 520px;
    }

    .geo-grid {
        grid-template-columns: 1fr;
    }

    .geo-features {
        grid-template-columns: 1fr 1fr;
    }

    .geo-card {
        padding: 1.8rem;
    }

    .geography-new {
        padding: 75px 20px;
    }

    .geography-new .geo-panels {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .geography-new .geo-panel {
        padding: 1.6rem;
    }

    .geography-new .geo-tools {
        grid-template-columns: 1fr 1fr;
    }

    .article-content {
        padding: 1.25rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-listing {
        padding: 30px 16px 70px;
    }

    .blog-card {
        padding: 1.25rem;
    }

    .blog-card-content h2 {
        font-size: 1.15rem;
    }

    .article-content {
        padding: 1rem;
        border-radius: 12px;
    }

    .article-content h1 {
        font-size: 1.35rem;
    }

    .article-section h2 {
        font-size: 1.2rem;
    }

    .article-section p,
    .article-section li {
        font-size: 1rem;
    }

    .article-table {
        font-size: 0.85rem;
        min-width: 460px;
    }

    .article-table th,
    .article-table td {
        padding: 0.6rem 0.7rem;
    }

    .article-table th {
        white-space: normal;
    }

    .blog-hero-title {
        font-size: 1.8rem;
    }

    .article-hero-title {
        font-size: 1.5rem;
    }

    .faq-q {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .faq-a {
        padding: 0 1rem 0.9rem;
    }

    .geo-features {
        grid-template-columns: 1fr;
    }

    .geo-card {
        padding: 1.5rem;
    }

    .geo-tag {
        font-size: 0.82rem;
        padding: 0.35rem 0.8rem;
    }
}

/* Blog very small screens (iPhone SE, etc.) */
@media (max-width: 360px) {
    .article-content {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .article-content h1 {
        font-size: 1.25rem;
    }

    .article-lead {
        font-size: 0.95rem;
    }

    .article-section h2 {
        font-size: 1.1rem;
    }

    .article-cta {
        padding: 1rem;
    }

    .article-cta h2 {
        font-size: 1.2rem;
    }

    .article-table {
        font-size: 0.8rem;
        min-width: 400px;
    }

    .article-table th,
    .article-table td {
        padding: 0.5rem;
    }

    .breadcrumbs-inline .breadcrumb-list,
    .breadcrumb-list {
        font-size: 0.8rem;
    }

    .blog-card {
        padding: 1rem;
    }

    .blog-card-content h2 {
        font-size: 1.05rem;
    }

    .blog-card-content p {
        font-size: 0.9rem;
    }

    .blog-hero-title {
        font-size: 1.6rem;
    }

    .article-hero-title {
        font-size: 1.35rem;
    }

    .geo-features {
        gap: 1rem;
    }

    .geo-feature {
        padding: 1rem;
    }
}
