:root {
    --color-bg: #0a0a0f;
    --color-surface: #13131a;
    --color-primary: #00f0ff;
    --color-secondary: #ff006e;
    --color-accent: #ffd60a;
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 10000;
    transition: transform 0.15s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.page-transition {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.4), rgba(10, 10, 15, 0.95));
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.page-transition.is-active {
    transform: scaleY(1);
    opacity: 1;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 10, 15, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo-vortex {
    color: var(--color-text);
}

.logo-sep {
    color: var(--color-primary);
}

.logo-digital {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link.is-current {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

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

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 3rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (max-width: 768px) {
    .gradient-orb {
        display: none !important;
        animation: none !important;
        will-change: auto !important;
    }
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary), transparent);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary), transparent);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

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

.word {
    display: inline-block;
    margin: 0 0.2em;
    font-weight: 600;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta {
    margin-top: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-bg);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 240, 255, 0.6);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: rgba(19, 19, 26, 0.9);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.scroll-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
    will-change: opacity, transform;
}

@media (min-width: 769px) {
    .scroll-hint {
        font-size: 0.95rem;
        letter-spacing: 0.2em;
        gap: 1.25rem;
        bottom: 1.5rem;
    }
    
    .scroll-line {
        height: 60px;
        width: 2px;
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.services {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 50%, var(--color-bg) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(19, 19, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow);
}

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

.service-card-highlight {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 214, 10, 0.1));
    border-color: var(--color-primary);
}

.card-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-features li {
    color: var(--color-primary);
    font-size: 0.9rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.about-section .service-card {
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.faq {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.faq-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(19, 19, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.faq-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.faq-item p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.work-item {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-item:visited,
.work-item:hover,
.work-item:focus,
.work-item:active {
    text-decoration: none;
    color: inherit;
}

.work-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow);
}

.work-image {
    height: 300px;
    background: linear-gradient(135deg, var(--color-surface), #1a1a2e);
    position: relative;
    overflow: hidden;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-grid {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: 
        linear-gradient(90deg, rgba(0, 240, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 240, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.work-placeholder span {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-info {
    padding: 2rem;
}

.work-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.work-info p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.work-tags span {
    padding: 0.3rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.contact {
    background: var(--color-surface);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.ai-chat-launcher {
    position: fixed;
    right: 28px;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(255, 214, 10, 0.2));
    color: var(--color-text);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    z-index: 3000;
}

.ai-chat-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.55);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(255, 214, 10, 0.3));
}

.launcher-icon {
    font-size: 1.2rem;
}

.launcher-label {
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ai-chat-window {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 380px;
    max-width: calc(100vw - 48px);
    display: flex;
    flex-direction: column;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 3100;
    transition: transform 0.25s ease, opacity 0.25s ease;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.ai-chat-window.hidden {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.ai-chat-window.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(255, 214, 10, 0.05));
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.ai-chat-header-buttons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ai-chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ai-chat-header-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.ai-chat-header h3 {
    font-size: 1.18rem;
    font-weight: 700;
}

.ai-chat-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.ai-chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.8), rgba(255, 214, 10, 0.8));
}

.ai-chat-close,
.ai-chat-clear {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-close {
    font-size: 1.1rem;
}

.ai-chat-close:hover {
    background: rgba(0, 240, 255, 0.3);
}

.ai-chat-clear:hover {
    background: rgba(255, 80, 80, 0.3);
}

.ai-chat-conversation {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 380px;
    overflow-y: auto;
}

.ai-chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ai-chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-line;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #ffffff;
}

.ai-chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.38), rgba(255, 237, 78, 0.42));
    border: 1px solid rgba(255, 214, 10, 0.55);
    color: #0a0a0a;
    font-weight: 600;
}

.ai-chat-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chat-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
    display: inline-block;
    margin: 0.1rem 0;
}

.chat-link:hover {
    background: rgba(0, 240, 255, 0.25);
    color: #fff;
}

.ai-chat-form {
    padding: 1.2rem 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-top: 1px solid rgba(0, 240, 255, 0.18);
    background: rgba(12, 12, 18, 0.95);
}

.ai-chat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.ai-chat-input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

#aiChatInput {
    width: 100%;
    resize: none;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 14px;
    background: rgba(15, 15, 15, 0.92);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    min-height: 64px;
}

#aiChatInput:focus {
    outline: none;
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.12);
}

.ai-chat-new-message {
    margin: 0 1.6rem;
    margin-top: -0.2rem;
    margin-bottom: 0.7rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 999px;
    background: rgba(12, 12, 18, 0.92);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
    align-self: center;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

.ai-chat-new-message:hover,
.ai-chat-new-message:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 214, 10, 0.55);
    outline: none;
}

.ai-chat-new-message.hidden {
    display: none;
}

.ai-chat-conversation::-webkit-scrollbar,
#aiChatInput::-webkit-scrollbar {
    width: 8px;
}

.ai-chat-conversation::-webkit-scrollbar-track,
#aiChatInput::-webkit-scrollbar-track {
    background: rgba(8, 8, 14, 0.9);
    border-radius: 8px;
}

.ai-chat-conversation::-webkit-scrollbar-thumb,
#aiChatInput::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.5), rgba(255, 214, 10, 0.55));
    border-radius: 8px;
}

.ai-chat-conversation::-webkit-scrollbar-thumb:hover,
#aiChatInput::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.7), rgba(255, 214, 10, 0.75));
}

#aiChatInput::-webkit-scrollbar {
    display: none;
}

.ai-chat-send {
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(255, 214, 10, 0.45));
    color: #000000;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 240, 255, 0.25);
}

.ai-chat-hint {
    margin: 0;
    padding: 0 1.6rem 1.2rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.ai-chat-hint a {
    color: rgba(0, 240, 255, 1);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.4);
}

.ai-chat-hint a:hover {
    border-color: rgba(0, 240, 255, 0.6);
}

.ai-chat-lead {
    padding: 0 1.6rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ai-chat-lead-toggle {
    align-self: stretch;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(15, 15, 15, 0.95);
    color: rgba(0, 240, 255, 1);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
}

.ai-chat-lead-toggle:hover,
.ai-chat-lead-toggle:focus-visible {
    background: rgba(0, 240, 255, 0.12);
    border-color: rgba(0, 240, 255, 0.6);
    outline: none;
}

.ai-chat-lead-toggle.is-sent {
    background: rgba(0, 240, 255, 0.18);
    border-color: rgba(0, 240, 255, 0.65);
    color: var(--color-primary);
}

.ai-chat-lead-toggle:disabled {
    cursor: default;
    opacity: 0.6;
    background: rgba(22, 22, 30, 0.65);
    border-color: rgba(0, 240, 255, 0.25);
    color: rgba(0, 240, 255, 0.6);
}

.ai-chat-lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: rgba(12, 12, 18, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.ai-chat-lead-form.hidden {
    display: none;
}

.ai-chat-lead-row input,
.ai-chat-lead-row textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(20, 20, 20, 0.92);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.55rem 0.7rem;
    font-family: inherit;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-lead-row input:focus,
.ai-chat-lead-row textarea:focus {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.2);
    outline: none;
}

.ai-chat-lead-row textarea {
    resize: vertical;
    min-height: 70px;
}

.ai-chat-lead-submit {
    align-self: flex-start;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.85), rgba(255, 214, 10, 0.85));
    color: #0f0f0f;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-lead-submit:hover,
.ai-chat-lead-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.28);
    outline: none;
}

.ai-chat-lead-feedback {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    min-height: 1.1em;
}

.ai-chat-lead-feedback.is-error {
    color: #ff6b7a;
}

.ai-chat-lead-feedback.is-success {
    color: #9dffdd;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.contact-info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-info-item p {
    color: var(--color-text-muted);
}

.contact-form {
    background: rgba(19, 19, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-privacy {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.form-privacy input {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    cursor: pointer;
}

.form-privacy label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-privacy a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer {
    background: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 4rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-col a.is-current {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
}

.thankyou {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.thankyou-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.thankyou-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.thankyou-orb.orb-one {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary), transparent);
    top: 10%;
    left: -10%;
}

.thankyou-orb.orb-two {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-secondary), transparent);
    bottom: 10%;
    right: -10%;
    animation-delay: -5s;
}

.thankyou-card {
    max-width: 700px;
    width: 100%;
    background: rgba(19, 19, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.thankyou-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.thankyou-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.thankyou-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.thankyou-actions .btn {
    min-width: 200px;
}

.legal {
    padding: 8rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.legal-subtitle {
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-card {
    background: rgba(19, 19, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.legal-meta {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 1rem;
}

.legal-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.legal-card p,
.legal-card li {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-list li::before {
    content: '•';
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.legal-note {
    font-size: 0.9rem;
}

.legal-link {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-link:hover {
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .nav-wrapper {
        padding: 0 2rem;
    }

    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 6rem 2rem 4rem;
    }

    section {
        padding: 5rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html, body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .gradient-orb,
    .hero-bg .gradient-orb {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        animation: none !important;
    }
    
    .hero-bg {
        display: none !important;
    }
    
    
    .nav,
    .nav-menu,
    .service-card,
    .faq-item,
    .contact-form-wrapper,
    .ai-chat-window,
    .ai-chat-header {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    
    
    .nav {
        background: rgba(10, 10, 15, 0.98) !important;
        will-change: auto !important;
    }
    
    
    *,
    *::before,
    *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0.1s !important;
        will-change: auto !important;
    }
    
    
    .scroll-hint,
    .scroll-line,
    .cursor-dot,
    .cursor-outline,
    .page-transition {
        display: none !important;
    }
    
    
    .service-card:hover,
    .work-item:hover,
    .faq-item:hover,
    .btn:hover,
    .nav-link:hover {
        transform: none !important;
        box-shadow: inherit !important;
    }
    
    
    .service-card,
    .work-item,
    .faq-item,
    .contact-form-wrapper {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
    
    
    .service-card,
    .faq-item {
        background: rgba(20, 20, 30, 0.95) !important;
    }
    
    
    section,
    .hero,
    .services,
    .work,
    .faq,
    .contact,
    .container,
    .nav-wrapper {
        transform: translateZ(0);
        backface-visibility: hidden;
        contain: layout style paint;
        will-change: auto;
    }
    
    .service-card,
    .work-item,
    .faq-item,
    .contact-form-wrapper,
    .nav {
        contain: layout style paint;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    
    .nav-wrapper {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 2rem;
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        background: rgba(10, 10, 15, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        width: min(240px, 80vw);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

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

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

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

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

    .work-item {
        min-width: unset;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }

    .legal {
        padding: 5rem 0;
    }

    .legal-card {
        padding: 2rem;
    }

    .thankyou {
        padding: 6rem 0 3rem;
    }

    .thankyou-card {
        padding: 3rem 2rem;
    }

    .thankyou-subtitle {
        margin-bottom: 1.5rem;
    }

    .thankyou-actions {
        flex-direction: column;
    }

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

    .ai-chat-launcher {
        right: 16px;
        bottom: 18px;
        padding: 0.75rem 1.2rem;
    }

    .ai-chat-window {
        right: 12px;
        left: 12px;
        bottom: 90px;
        width: auto;
        max-width: 400px;
        margin: 0 auto;
        max-height: calc(100vh - 120px);
        max-height: calc(100dvh - 120px);
    }

    .ai-chat-conversation {
        max-height: 45vh;
        max-height: 45dvh;
    }
    
    .ai-chat-header {
        padding: 1rem 1.2rem;
    }
    
    .ai-chat-header h3 {
        font-size: 1rem;
    }
    
    .ai-chat-header p {
        font-size: 0.8rem;
    }
    
    .ai-chat-lead {
        padding: 0 1rem 0.8rem;
    }
    
    .ai-chat-form {
        padding: 0.9rem 1.2rem 1rem;
    }
    
    #aiChatInput {
        min-height: 80px;
        padding: 0.8rem 1rem;
        font-size: 16px; 
    }

    .ai-chat-bubble {
        font-size: 0.9rem;
        padding: 0.6rem 0.9rem;
    }
    
    .ai-chat-hint {
        font-size: 0.7rem;
        padding: 0 1rem 0.8rem;
    }
}


@media (max-width: 380px) {
    .ai-chat-window {
        right: 8px;
        left: 8px;
        bottom: 85px;
    }
    
    .ai-chat-launcher {
        right: 12px;
        bottom: 14px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .ai-chat-header {
        padding: 0.9rem 1rem;
    }
    
    .ai-chat-conversation {
        max-height: 40vh;
        max-height: 40dvh;
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .ai-chat-launcher {
        right: 8px;
        bottom: 12px;
        padding: 0.55rem 0.9rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .launcher-icon {
        font-size: 1rem;
    }
    
    .launcher-label {
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }
    
    .ai-chat-window {
        right: 4px;
        left: 4px;
        bottom: 80px;
        max-width: calc(100vw - 8px);
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        border-radius: 12px;
    }
    
    .ai-chat-header {
        padding: 0.75rem 0.9rem;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .ai-chat-header-text {
        flex: 1;
        min-width: 0;
    }
    
    .ai-chat-header h3 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .ai-chat-header p {
        font-size: 0.7rem;
    }
    
    .ai-chat-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .ai-chat-header-buttons {
        gap: 0.4rem;
        flex-shrink: 0;
    }
    
    .ai-chat-close,
    .ai-chat-clear {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    .ai-chat-close {
        font-size: 1rem;
    }
    
    .ai-chat-conversation {
        padding: 0.75rem 0.9rem;
        max-height: calc(100vh - 280px);
        max-height: calc(100dvh - 280px);
        gap: 0.7rem;
    }
    
    .ai-chat-bubble {
        font-size: 0.85rem;
        padding: 0.55rem 0.8rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .ai-chat-form {
        padding: 0.8rem 0.9rem 0.9rem;
        gap: 0.5rem;
    }
    
    .ai-chat-label {
        font-size: 0.7rem;
    }
    
    .ai-chat-input-group {
        gap: 0.6rem;
    }
    
    #aiChatInput {
        min-height: 72px;
        padding: 0.7rem 0.9rem;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .ai-chat-send {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 0.9rem;
        touch-action: manipulation;
    }
    
    .ai-chat-launcher {
        touch-action: manipulation;
        min-width: 44px;
        min-height: 44px;
    }
    
    .ai-chat-lead {
        padding: 0 0.9rem 0.75rem;
        gap: 0.7rem;
    }
    
    .ai-chat-lead-toggle {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .ai-chat-lead-form {
        padding: 0.75rem 0.85rem;
        gap: 0.6rem;
        border-radius: 12px;
    }
    
    .ai-chat-lead-row input,
    .ai-chat-lead-row textarea {
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .ai-chat-lead-submit {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }
    
    .ai-chat-lead-feedback {
        font-size: 0.75rem;
    }
    
    .ai-chat-hint {
        padding: 0 0.9rem 0.75rem;
        font-size: 0.65rem;
        line-height: 1.4;
    }
    
    .chat-link {
        font-size: 0.85rem;
        padding: 0.1rem 0.3rem;
    }
    
    .ai-chat-status {
        font-size: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
}


@media (max-width: 768px) {
  .chat-container {
    width: 90%;
    max-height: 70vh;
    bottom: 10px;
    left: 5%;
    right: 5%;
  }
  .chat-header {
    padding: 8px 10px;
  }
  .chat-messages {
    padding: 5px;
  }
  .chat-input-container {
    padding: 5px;
  }
  .chat-input-container input,
  .chat-input-container button {
    padding: 8px;
  }
}
}
