/* ====================================
   ALEMISOL STUDIO WEBSITE
   4-theme vertical scroll system
   ==================================== */

/* ====================================
   GLOBAL RESET & BASE
   ==================================== */

html {
    scroll-behavior: smooth;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #171717;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

a {
    color: inherit;
}

.cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 500;
    opacity: 0.6;
}

.skip-to-main {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 10000;
    padding: 12px 20px;
    background: #0a0a0a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.skip-to-main:focus {
    top: 20px;
}

/* ====================================
   THEME SYSTEM — 4 MODES
   ==================================== */

[data-theme="medieval"] {
    --bg: #2a1f35;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-alt: rgba(255, 255, 255, 0.12);
    --text: #fafafa;
    --muted: #c4b5d3;
    --accent: #d4a5ff;
    --border: rgba(255, 255, 255, 0.15);
    --shadow: rgba(212, 165, 255, 0.2);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --button-height: 52px;
}

[data-theme="futuristic"] {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-alt: #1a1a26;
    --text: #e0e0ff;
    --muted: #8a8aad;
    --accent: #00ffcc;
    --border: #2d2d45;
    --shadow: rgba(0, 255, 204, 0.2);
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --button-height: 48px;
}

[data-theme="organic"] {
    --bg: #e8e4dc;
    --surface: #f5f2ed;
    --surface-alt: #ebe7df;
    --text: #3d3428;
    --muted: #7a6f5d;
    --accent: #6b5d48;
    --border: #d4cfc8;
    --shadow: rgba(107, 93, 72, 0.15);
    --radius-sm: 20px;
    --radius-md: 28px;
    --radius-lg: 36px;
    --button-height: 54px;
}

[data-theme="technical"] {
    --bg: #0f1419;
    --surface: #1a2129;
    --surface-alt: #232d38;
    --text: #c8d9e8;
    --muted: #7a90a8;
    --accent: #6495ed;
    --border: rgba(100, 149, 237, 0.25);
    --shadow: rgba(100, 149, 237, 0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --button-height: 50px;
}

/* ====================================
   SECTION CORE
   ==================================== */

.section {
    background: var(--bg);
    color: var(--text);
    transition: background 0.6s ease, color 0.6s ease;
    padding: 104px 20px;
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
}

[data-theme="medieval"] {
    background-image: url('assets/medieval-stars-dark-8k.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

[data-theme="futuristic"] {
    background-image: url('assets/cyber-aerial-8k.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

[data-theme="organic"] {
    background-image: url('assets/organic-waterfall-8k.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

[data-theme="technical"] {
    background-image: url('assets/technical-modern-8k.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

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

.section-header {
    margin-bottom: 46px;
    max-width: 720px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-intro {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.6;
}

/* ====================================
   NAVIGATION
   ==================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.nav.dark-theme {
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-active-theme="medieval"] .nav {
    background:
        linear-gradient(180deg, rgba(8, 10, 16, 0.48) 0%, rgba(10, 8, 15, 0.62) 100%),
        url('assets/header-stars-milkyway-8k.jpg') center 34% / cover no-repeat;
    border-bottom: 1px solid rgba(200, 180, 255, 0.15);
}

body[data-active-theme="futuristic"] .nav {
    background: rgba(10, 15, 25, 0.8);
    border-bottom: 1px solid rgba(0, 200, 255, 0.2);
}

body[data-active-theme="organic"] .nav {
    background: rgba(60, 50, 40, 0.75);
    border-bottom: 1px solid rgba(107, 93, 72, 0.3);
}

body[data-active-theme="technical"] .nav {
    background: rgba(15, 20, 25, 0.8);
    border-bottom: 1px solid rgba(100, 149, 237, 0.2);
}

.nav.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.nav.dark-theme .nav-logo {
    color: #fafafa;
}

body[data-active-theme="medieval"] .nav-logo,
body[data-active-theme="futuristic"] .nav-logo,
body[data-active-theme="technical"] .nav-logo {
    color: #ffffff;
}

body[data-active-theme="organic"] .nav-logo {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.nav.dark-theme .nav-toggle span {
    background: #fafafa;
}

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

.lang-switch {
    display: flex;
    gap: 4px;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.lang-option {
    font-size: 15px;
    font-weight: 600;
    color: #999999;
    transition: color 0.2s ease;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-option.active {
    color: #ffffff;
}

.nav.dark-theme .lang-option.active {
    color: #ffffff;
}

body[data-active-theme="medieval"] .lang-option.active,
body[data-active-theme="futuristic"] .lang-option.active,
body[data-active-theme="technical"] .lang-option.active {
    color: #ffffff;
}

body[data-active-theme="organic"] .lang-option.active {
    color: #ffffff;
}

.lang-option:hover {
    color: #cccccc;
}

.lang-divider {
    font-size: 15px;
    color: #666666;
}

.nav.dark-theme .lang-divider {
    color: #666666;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
    padding: 6px 0;
}

.nav.dark-theme .nav-menu a {
    color: #ffffff;
}

body[data-active-theme="medieval"] .nav-menu a,
body[data-active-theme="futuristic"] .nav-menu a,
body[data-active-theme="technical"] .nav-menu a {
    color: #ffffff;
}

body[data-active-theme="organic"] .nav-menu a {
    color: #ffffff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.2s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #0a0a0a;
}

.nav.dark-theme .nav-menu a:hover {
    color: #fafafa;
}

body[data-active-theme="medieval"] .nav-menu a:hover,
body[data-active-theme="futuristic"] .nav-menu a:hover,
body[data-active-theme="technical"] .nav-menu a:hover {
    color: #ffffff;
    opacity: 0.8;
}

body[data-active-theme="organic"] .nav-menu a:hover {
    color: #ffffff;
    opacity: 0.7;
}

.nav-cta {
    padding: 14px 36px;
    background: #0a0a0a;
    color: #ffffff !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    font-size: 16px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

body[data-active-theme="medieval"] .nav-cta {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body[data-active-theme="futuristic"] .nav-cta {
    border-radius: 0;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    border: 1px solid rgba(6, 12, 18, 0.18);
}

body[data-active-theme="organic"] .nav-cta {
    border-radius: 20px 8px 20px 8px;
}

body[data-active-theme="technical"] .nav-cta {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.nav.dark-theme .nav-cta {
    background: #fafafa;
    color: #0a0a0a !important;
}

body[data-active-theme="medieval"] .nav-cta,
body[data-active-theme="futuristic"] .nav-cta,
body[data-active-theme="technical"] .nav-cta {
    background: #ffffff;
    color: #0a0a0a !important;
}

body[data-active-theme="organic"] .nav-cta {
    background: #3d3428;
    color: #ffffff !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ====================================
   HERO SECTION
   ==================================== */

#hero {
    min-height: 88vh;
    padding-top: 72px;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(42, 31, 53, 0.4) 70%, rgba(42, 31, 53, 0.85) 100%);
    z-index: 0;
}


.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.hero-title {
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-title-line {
    display: block;
}

@media (min-width: 700px) {
    .hero-title-line:first-child {
        white-space: nowrap;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 620px;
    display: inline-block;
    padding: 10px 14px;
    background: rgba(10, 12, 18, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-trust {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 640px;
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--button-height);
    padding: 0 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="medieval"] .btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="futuristic"] .btn {
    border-radius: 0;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    letter-spacing: 0.03em;
}

[data-theme="organic"] .btn {
    border-radius: 20px 8px 20px 8px;
}

[data-theme="technical"] .btn {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

[data-theme="futuristic"] .btn-primary {
    box-shadow: 0 0 16px var(--shadow);
}

[data-theme="futuristic"] .btn-primary:hover {
    box-shadow: 0 0 28px var(--shadow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-alt);
    border-color: var(--accent);
}

/* ====================================
   SERVICES SECTION
   ==================================== */

.section-services {
    padding: 112px 20px;
    position: relative;
    overflow: hidden;
}

.section-services .container {
    position: relative;
    z-index: 1;
}

[data-theme="futuristic"] .section-header {
    max-width: 680px;
    padding: 24px 28px 24px 30px;
    border-left: 2px solid var(--accent);
    border: 1px solid rgba(210, 245, 255, 0.14);
    background: linear-gradient(135deg, rgba(8, 14, 24, 0.78) 0%, rgba(12, 22, 38, 0.62) 100%);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

[data-theme="futuristic"] .section-header h2 {
    color: #eef7ff;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.16);
}

[data-theme="futuristic"] .section-header .section-intro {
    color: rgba(238, 247, 255, 0.8);
}

.section-work .section-header {
    max-width: 640px;
}

.services-grid {
    --services-gap: 24px;
    --services-pad: 40px;
    --channel-width: 26px;
    --content-width: calc(100% - (2 * var(--services-pad)));
    --col-width: calc((var(--content-width) - (3 * var(--services-gap))) / 4);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--services-gap);
    align-items: stretch;
    max-width: 1460px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
}

.service-card {
    position: relative;
    min-height: 340px;
    border-radius: 24px;
    padding: 28px 28px 30px 28px;
    background: rgba(10, 12, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 24px rgba(4, 8, 14, 0.12);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 2;
}

[data-theme="futuristic"] .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(4, 8, 14, 0.16);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #f2f7fb;
    line-height: 1.2;
}

.service-card p {
    font-size: 15px;
    color: rgba(232, 240, 247, 0.82);
    line-height: 1.62;
}

.service-card-blue {
    background: rgba(10, 12, 22, 0.82);
}

.service-card-purple {
    background: rgba(10, 12, 22, 0.82);
}

.service-card-gold {
    background: rgba(10, 12, 22, 0.82);
}

.service-card-green {
    background: rgba(10, 12, 22, 0.82);
}

.service-separator {
    position: absolute;
    top: 52px;
    bottom: 52px;
    width: var(--channel-width);
    border-radius: 999px;
    opacity: 0.62;
    filter: blur(26px);
    pointer-events: none;
    z-index: 1;
}

.service-separator-1 {
    left: calc(var(--services-pad) + var(--col-width) + (var(--services-gap) / 2) - (var(--channel-width) / 2));
    background: rgba(68, 211, 255, 0.35);
}

.service-separator-2 {
    left: calc(var(--services-pad) + (var(--col-width) * 2) + (var(--services-gap) * 1.5) - (var(--channel-width) / 2));
    background: rgba(160, 120, 255, 0.28);
}

.service-separator-3 {
    left: calc(var(--services-pad) + (var(--col-width) * 3) + (var(--services-gap) * 2.5) - (var(--channel-width) / 2));
    background: rgba(106, 208, 170, 0.30);
}

.service-card-green::after {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 28px;
    right: -10px;
    width: 18px;
    border-radius: 999px;
    background: rgba(255, 190, 92, 0.18);
    filter: blur(22px);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

/* ====================================
   WORK SECTION
   ==================================== */

.section-work {
    padding: 108px 20px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 360px));
    justify-content: center;
    gap: 26px;
}

.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    justify-self: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-theme="futuristic"] .case-card {
    border-color: var(--border);
    box-shadow: 0 0 20px var(--shadow);
}

[data-theme="futuristic"] .case-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 40px var(--shadow);
    transform: translateY(-4px);
}

.case-visual {
    aspect-ratio: 16/8.9;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.case-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #12121a 0%, #1a1a26 100%);
}

.case-placeholder[data-accent="1"] {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a26 100%);
    box-shadow: inset 0 0 60px rgba(0, 255, 204, 0.08);
}

.case-placeholder[data-accent="2"] {
    background: linear-gradient(135deg, #12121a 0%, #0a0a0f 100%);
    box-shadow: inset 0 0 60px rgba(0, 255, 204, 0.06);
}

.case-placeholder[data-accent="3"] {
    background: linear-gradient(135deg, #0f0f14 0%, #12121a 100%);
    box-shadow: inset 0 0 60px rgba(0, 255, 204, 0.1);
}

.case-content {
    padding: 24px;
}

.case-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: var(--surface-alt);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

[data-theme="futuristic"] .tag {
    background: transparent;
    border-color: var(--accent);
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    text-shadow: 0 0 4px var(--shadow);
}

.case-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.case-title-link {
    color: inherit;
    text-decoration: none;
}

.case-title-link:hover {
    opacity: 0.9;
}

.case-preview-link,
.case-preview-image {
    display: block;
    width: 100%;
    height: 100%;
}

.case-preview-link {
    background: #0c1016;
}

.case-preview-image {
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.case-preview-image-logo {
    object-fit: contain;
    object-position: center;
    padding: 28px;
    background:
        radial-gradient(circle at top, rgba(92, 129, 211, 0.12), transparent 44%),
        #0c1016;
}

.case-card:hover .case-preview-image {
    transform: scale(1.02);
}

.case-position {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.case-scope {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
    opacity: 0.8;
}

.case-desc {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.case-result {
    font-size: 14px;
    color: rgba(238, 247, 255, 0.86);
    line-height: 1.7;
    padding-top: 14px;
    border-top: 1px solid rgba(210, 245, 255, 0.12);
}

/* ====================================
   PROCESS SECTION
   ==================================== */

.section-process {
    padding: 112px 20px;
    position: relative;
}

.section-process::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 27, 18, 0.16) 0%, rgba(22, 27, 18, 0.28) 100%);
    pointer-events: none;
    z-index: 0;
}

.section-process .container {
    position: relative;
    z-index: 1;
}

.section-process .section-header {
    max-width: 760px;
    margin-bottom: 42px;
    padding: 26px 30px;
    background: linear-gradient(135deg, rgba(31, 39, 24, 0.74) 0%, rgba(54, 67, 42, 0.56) 100%);
    border: 1px solid rgba(240, 235, 224, 0.16);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 48px rgba(20, 24, 18, 0.18);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.process-step {
    position: relative;
    padding: 26px 26px 26px 30px;
    background: linear-gradient(180deg, rgba(28, 35, 22, 0.74) 0%, rgba(44, 54, 34, 0.58) 100%);
    border: 1px solid rgba(240, 235, 224, 0.14);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(20, 24, 18, 0.16);
}

.process-step::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 24px;
    width: 3px;
    height: calc(100% - 48px);
    background: linear-gradient(180deg, rgba(224, 216, 196, 0.75) 0%, rgba(224, 216, 196, 0.14) 100%);
    opacity: 1;
    border-radius: 10px;
}

.section-process .section-header h2,
.section-process .section-header .section-intro,
.process-step h3,
.process-step p {
    position: relative;
    z-index: 1;
}

.section-process .section-header h2 {
    color: #f3ede0;
}

.section-process .section-header .section-intro {
    color: rgba(243, 237, 224, 0.78);
}

.process-step h3 {
    font-size: 27px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #f3ede0;
}

.process-step p {
    font-size: 16px;
    color: rgba(243, 237, 224, 0.78);
    line-height: 1.72;
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.section-about {
    padding: 108px 20px;
    position: relative;
}

.section-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(42, 31, 53, 0.85) 0%, rgba(42, 31, 53, 0.6) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="organic"]::before {
    background: linear-gradient(90deg, rgba(34, 44, 26, 0.28) 0%, rgba(34, 44, 26, 0.14) 40%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text {
    padding: 28px 32px;
    background: rgba(239, 234, 224, 0.42);
    border: 1px solid rgba(107, 93, 72, 0.12);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(61, 52, 40, 0.05);
}

.about-text h2 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #171512;
    letter-spacing: -0.02em;
    max-width: 600px;
}

.about-text p {
    font-size: 17px;
    color: rgba(23, 21, 18, 0.92);
    line-height: 1.65;
    margin-bottom: 16px;
    font-weight: 500;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: rgba(239, 234, 224, 0.34);
    border: 1px solid rgba(107, 93, 72, 0.1);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.detail-block {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-block:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.detail-block h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #171512;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-block p {
    font-size: 15px;
    color: rgba(23, 21, 18, 0.86);
    line-height: 1.6;
}

/* ====================================
   CONTACT SECTION
   ==================================== */

.section-contact {
    padding: 112px 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.contact-text {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: 0 4px 20px var(--shadow);
    backdrop-filter: blur(14px);
}

.contact-text h2 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 18px;
    color: var(--text);
    letter-spacing: -0.02em;
}

.contact-text p {
    font-size: 19px;
    color: var(--muted);
    line-height: 1.62;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 26px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(177, 187, 201, 0.62);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-alt);
    box-shadow: 0 0 0 3px var(--shadow);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: rgba(232, 130, 130, 0.72);
    box-shadow: 0 0 0 3px rgba(232, 130, 130, 0.14);
}

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

.contact-form .btn {
    width: 100%;
}

.contact-form-status {
    margin-top: 16px;
    min-height: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    padding: 0;
}

.contact-form-status.is-success {
    color: #dbe7da;
}

.contact-form-status.is-error {
    color: #f1c4c4;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background: #0a0a0a;
    color: #fafafa;
    padding: 68px 20px 36px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid #262626;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #737373;
    font-size: 15px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.footer-links a {
    color: #fafafa;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #a3a3a3;
}

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

.footer-bottom p {
    color: #525252;
    font-size: 14px;
}

/* ====================================
   RESPONSIVE — TABLET
   ==================================== */

@media (max-width: 900px) {
    .section {
        padding: 84px 20px;
        min-height: auto;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    [data-theme="futuristic"] .section-header {
        padding: 22px 24px 22px 26px;
        background: linear-gradient(135deg, rgba(8, 14, 24, 0.94) 0%, rgba(12, 22, 38, 0.9) 100%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-title {
        font-size: 52px;
    }


    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        max-width: 1100px;
        padding: 32px 24px;
        --services-gap: 22px;
        --services-pad: 24px;
        --channel-width: 22px;
    }

    .service-card {
        min-height: 320px;
        padding: 26px 24px 28px 24px;
    }

    .service-separator-1 {
        left: calc(50% - (var(--channel-width) / 2));
        top: 42px;
        bottom: 42px;
    }

    .service-separator-2 {
        left: 24px;
        right: 24px;
        top: calc(50% - 12px);
        bottom: auto;
        width: auto;
        height: 24px;
        background: linear-gradient(90deg, rgba(68, 211, 255, 0.16) 0%, rgba(160, 120, 255, 0.20) 48%, rgba(106, 208, 170, 0.18) 100%);
        border-radius: 999px;
        opacity: 0.55;
    }

    .service-separator-3 {
        display: none;
    }

    .service-card h3 {
        font-size: 19px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.5;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-text {
        padding: 28px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-text,
    .contact-form {
        padding: 28px;
    }

    .section-process .section-header,
    .process-step {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        align-items: flex-start;
    }

    .lang-switch {
        display: flex;
        order: 2;
        margin-left: auto;
        margin-right: 12px;
    }

}

/* ====================================
   RESPONSIVE — MOBILE
   ==================================== */

@media (max-width: 640px) {
    .cursor-canvas {
        display: none;
    }
    
    .floating-cta {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 680px;
        padding: 20px 0 0;
    }

    .service-card {
        min-height: 0;
        padding: 24px;
    }

    .service-separator {
        display: none;
    }

    .service-card + .service-card::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 24px;
        right: 24px;
        height: 18px;
        border-radius: 999px;
        filter: blur(18px);
        opacity: 0.55;
        pointer-events: none;
        z-index: -1;
    }

    .service-card-purple::before {
        background: rgba(68, 211, 255, 0.22);
    }

    .service-card-gold::before {
        background: rgba(160, 120, 255, 0.18);
    }

    .service-card-green::before {
        background: rgba(106, 208, 170, 0.2);
    }

    .service-card-green::after {
        top: auto;
        bottom: -8px;
        right: 28px;
        left: 28px;
        width: auto;
        height: 14px;
        opacity: 0.35;
    }
    
    .section {
        padding: 68px 16px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    [data-theme="futuristic"] .section-header {
        padding: 18px 18px 18px 20px;
        background: linear-gradient(135deg, rgba(8, 14, 24, 0.96) 0%, rgba(12, 22, 38, 0.92) 100%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .contact-text,
    .contact-form {
        padding: 20px;
    }

    .section-process .section-header,
    .process-step {
        padding: 18px;
    }

    .contact-text h2 {
        font-size: 34px;
    }

    .contact-text p {
        font-size: 18px;
    }

    .about-text {
        padding: 20px;
    }

    .nav-container {
        height: 68px;
        padding: 0 16px;
    }

    .nav-logo {
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .nav-menu {
        order: 4;
    }

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

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

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

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 12, 18, 0.96);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px 16px;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav.dark-theme .nav-menu {
        background: rgba(10, 10, 15, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body[data-active-theme="medieval"] .nav-menu {
        background: rgba(8, 10, 16, 0.94);
        border-bottom: 1px solid rgba(200, 180, 255, 0.12);
    }

    body[data-active-theme="futuristic"] .nav-menu {
        background: rgba(8, 14, 24, 0.96);
        border-bottom: 1px solid rgba(0, 200, 255, 0.14);
    }

    body[data-active-theme="organic"] .nav-menu {
        background: rgba(39, 34, 28, 0.94);
        border-bottom: 1px solid rgba(232, 228, 220, 0.12);
    }

    body[data-active-theme="technical"] .nav-menu {
        background: rgba(12, 18, 26, 0.96);
        border-bottom: 1px solid rgba(100, 149, 237, 0.14);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        padding: 14px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav.dark-theme .nav-menu a {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .nav-menu a::after {
        display: none;
    }

    .lang-switch {
        display: flex !important;
        width: auto;
        padding: 6px 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        margin-left: auto;
        margin-right: 12px;
        font-size: 13px;
    }

    .lang-option {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.6);
    }

    .lang-option.active {
        color: #ffffff;
    }

    .lang-divider {
        color: rgba(255, 255, 255, 0.3);
        font-size: 13px;
    }

    .nav-cta {
        margin-top: 8px;
        text-align: center;
        width: 100%;
    }

    #hero {
        min-height: 76vh;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }


    .section-header h2 {
        font-size: 32px;
    }

    .service-card {
        padding: 24px;
    }

    .case-content {
        padding: 20px;
    }

    .process-step {
        padding-left: 22px;
    }

    .about-text h2 {
        font-size: 32px;
    }

    .contact-text h2 {
        font-size: 32px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .footer {
        padding: 52px 16px 28px;
    }
}

/* ====================================
   UTILITIES
   ==================================== */

.floating-cta {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 200px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: #ffffff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s, background 0.3s ease, color 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

body[data-active-theme="futuristic"] .floating-cta,
body[data-active-theme="organic"] .floating-cta {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0s, background 0.3s ease, color 0.3s ease;
    pointer-events: all;
}

.floating-cta:hover {
    background: #1a1a1a;
}

body[data-active-theme="futuristic"] .floating-cta {
    background: rgba(0, 200, 255, 0.9);
    color: #000;
}

body[data-active-theme="organic"] .floating-cta {
    background: rgba(100, 120, 80, 0.9);
    color: #fff;
}

body[data-active-theme="technical"] .floating-cta {
    background: rgba(100, 149, 237, 0.9);
    color: #fff;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

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