:root {
    --bg: #f4f6f9;
    --bg-elevated: #ffffff;
    --bg-section: #f8fafc;
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --primary-dark: #1d4ed8;
    --secondary: #0d9488;
    --accent: #0f172a;
    --text: #0f172a;
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.08);
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.06);
    --neon-green: #2563eb;
    --shadow: rgba(0, 0, 0, 0.06);
    --code-bg: #f1f5f9;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-elevated: #1e293b;
    --bg-section: #1e293b;
    --primary: #5eead4;
    --primary-glow: rgba(94, 234, 212, 0.3);
    --primary-dark: #2dd4bf;
    --secondary: #a78bfa;
    --accent: #60a5fa;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --white: #ffffff;
    --glass: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(255, 255, 255, 0.06);
    --neon-green: #5eead4;
    --shadow: rgba(0, 0, 0, 0.3);
    --code-bg: #020617;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* v8-polished: fixed navbar nedeniyle içerik üstten taşmasın */
body.v8-polished main {
    padding-top: 30px;
}

:focus-visible {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
    border-radius: 10px;
}

input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

/* Mobil menü açıkken arayüz netleşsin */
.mobile-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.5;
    background: var(--bg);
}

/* Milimeter paper overlay - light */
#canvas-container::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background:
        linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(13, 148, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    z-index: 10;
    pointer-events: none;
    animation: paperDrift 30s linear infinite;
}

@keyframes paperDrift {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== GLASSMORPHISM NAVBAR ===== */
.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-by { color: #60a5fa; font-weight: 700; }
.logo-mentis { color: #1e40af; font-weight: 800; }
.logo-dot { color: var(--primary); font-size: 1.5rem; line-height: 1; }

.logo-bot {
    color: #2563eb;
    stroke: #2563eb;
    margin-right: 4px;
    flex-shrink: 0;
}
.lb-head { animation: lbBreathe 4s ease-in-out infinite; }
.lb-eye-l, .lb-eye-r { animation: lbBlink 4s ease-in-out infinite; }
.lb-eye-r { animation-delay: 0.05s; }
.lb-mouth { animation: lbMouth 4s ease-in-out infinite; }
.lb-antenna { animation: lbAntenna 3s ease-in-out infinite; }
.lb-antenna + circle { animation: lbAntenna 3s ease-in-out infinite; }

@keyframes lbBreathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.04); } }
@keyframes lbBlink { 0%,96%,100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } 99% { transform: scaleY(1); } }
@keyframes lbMouth { 0%,90%,100% { transform: scaleX(1); } 93% { transform: scaleX(0.8); } 96% { transform: scaleX(1); } }
@keyframes lbAntenna { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(3deg); } 75% { transform: rotate(-3deg); } }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: #3b82f6;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:hover {
    color: #3b82f6;
}

.nav-links a:hover::before {
    clip-path: inset(0 0 0 0);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: #3b82f6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.5rem;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active { top: 0; }

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-links a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

.mobile-links a:hover {
    color: var(--primary);
}

/* ===== MODERN BUTTONS WITH MICRO-ANIMATIONS ===== */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.w-full { width: 100%; }

/* ===== ENHANCED HERO WITH BOLD TYPOGRAPHY ===== */
.hero-v8 {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-v8 .container {
    position: relative;
    z-index: 1;
}

.hero-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
}

.hero-v8 h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-v8 h1 span {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(94, 234, 212, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(94, 234, 212, 0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-v8 p {
    font-size: 1.25rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== SECTION HEADER ===== */
.section-header { 
    text-align: center; 
    margin-bottom: 4rem; 
}

.section-header h2 { 
    font-size: 2.5rem; 
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== EXPLORER WINDOW ===== */
.process-section { padding: 80px 0; }

.explorer-header {
    background: var(--bg-elevated);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.window-controls { display: flex; gap: 6px; align-items: center; width: 100%; }
.window-controls span { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    opacity: 0.5;
    flex-shrink: 0;
}
.window-controls span:nth-child(1) { background: #ff5f56; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #27c93f; }

.explorer-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: rgba(15,23,42,0.2);
    margin-left: 0.75rem;
    letter-spacing: 0.03em;
    transition: color 0.4s ease;
}

.explorer-tabs { display: flex; gap: 0.5rem; }
.tab-btn {
    background: transparent;
    border: none;
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-transform: lowercase;
}

.tab-btn:hover {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active { 
    color: var(--primary); 
    background: rgba(13, 148, 136, 0.1);
    box-shadow: inset 0 0 10px rgba(13, 148, 136, 0.1);
}

.explorer-body { 
    min-height: 400px; 
    background: var(--bg-section); 
    position: relative; 
}

.pane { 
    display: none; 
    padding: 2.5rem; 
}

.pane.active { 
    display: block; 
    animation: fadeIn 0.5s ease; 
}

/* ===== CLI & IDE (VINTAGE MODERN) ===== */
.terminal-content, .ide-content { 
    font-family: 'Fira Code', monospace; 
    font-size: 0.85rem; 
    color: #475569;
    line-height: 1.6;
    position: relative;
    white-space: pre;
}

.ide-content pre,
.ide-content code {
    font-family: inherit;
    white-space: pre;
}

.ide-line-num {
    display: inline-block;
    width: 24px;
    color: #cbd5e1;
    user-select: none;
    text-align: right;
    margin-right: 12px;
}

.cli-prompt {
    color: var(--primary);
    font-weight: 700;
}

.cursor-blink {
    color: var(--primary);
    animation: cursorPulse 0.8s step-end infinite;
    font-weight: 700;
}

@keyframes cursorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.l { margin-bottom: 0.6rem; position: relative; }
.l::before { content: ">"; margin-right: 12px; color: var(--primary); opacity: 0.6; }
.l.success { color: var(--primary); }

.k { color: var(--primary); } 
.v { color: #7c3aed; } 
.s { color: var(--primary); } 
.f { color: #2563eb; } 
.n { color: #7c3aed; }
.c { color: #94a3b8; font-style: italic; }

/* ===== VINTAGE GRID CONTAINER ===== */
.preview-mockup { 
    height: 100%;
    width: 100%;
}

.vintage-grid-container {
    position: relative;
    width: 100%;
    height: 350px;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
}

.scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 1;
    pointer-events: none;
}
.ssh-terminal {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 600px;
    background: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    font-family: 'Fira Code', monospace;
    overflow: hidden;
}

.ssh-header {
    background: #0f172a;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.ssh-title {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: lowercase;
}

.ssh-body {
    padding: 1rem;
    height: 240px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ssh-line {
    opacity: 0;
    transform: translateY(5px);
    animation: sshFadeIn 0.3s forwards;
}

.ssh-line.logo-line {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(13, 148, 136, 0.5);
    opacity: 1;
    transform: none;
    animation: none;
}

.ssh-line.command { color: #5eead4; }
.ssh-line.info { color: #94a3b8; }
.ssh-line.success { color: #34d399; }
.ssh-line.warning { color: #fbbf24; }

@keyframes sshFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.ssh-body::-webkit-scrollbar {
    width: 4px;
}
.ssh-body::-webkit-scrollbar-track {
    background: transparent;
}
.ssh-body::-webkit-scrollbar-thumb {
    background: rgba(13, 148, 136, 0.2);
    border-radius: 10px;
}

/* ===== INFINITE CANVAS (LEGACY) ===== */
.infinite-canvas {
    position: relative;
    width: 100%;
    height: 420px;
    background: radial-gradient(1200px 420px at 20% 10%, rgba(13, 148, 136, 0.18), transparent 55%),
                linear-gradient(135deg, #070b14 0%, #0b1223 35%, #0f172a 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.45),
        inset 0 0 0 1px rgba(13, 148, 136, 0.18),
        inset 0 0 150px rgba(13, 148, 136, 0.06),
        0 0 30px rgba(0, 255, 255, 0.5), /* Neon cyan glow */
        0 0 40px rgba(255, 0, 255, 0.4); /* Neon pink glow */
}

/* CRT/terminal overlay (HTML bozulmadan) */
.infinite-canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.06) 0px,
            rgba(255,255,255,0.03) 1px,
            rgba(0,0,0,0) 2px);
    background-size: 100% 6px;
    opacity: 0.35;
    pointer-events: none;
}

.infinite-canvas::after {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(600px 220px at 50% 20%, rgba(13, 148, 136, 0.12), transparent 60%),
        radial-gradient(600px 220px at 30% 70%, rgba(201, 42, 42, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.18) 100%);
    opacity: 0.55;
    mix-blend-mode: normal;
    pointer-events: none;
}

.canvas-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    animation: gridMove 28s linear infinite;
    opacity: 0.75;
}

@keyframes gridMove {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, 40px); }
}

.floating-element {
    position: absolute;
    border-radius: 16px;
    animation: float 7s ease-in-out infinite;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 148, 136, 0.14);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.10);
}

.el-1 {
    width: 120px; height: 80px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.4), rgba(99, 102, 241, 0.4));
    top: 15%; left: 10%;
    animation-delay: 0s;
}

.el-2 {
    width: 100px; height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.4));
    top: 35%; right: 15%;
    border-radius: 50%;
    animation-delay: 1s;
}

.el-3 {
    width: 80px; height: 120px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.4), rgba(13, 148, 136, 0.3));
    bottom: 25%; left: 20%;
    animation-delay: 2s;
}

.el-4 {
    width: 140px; height: 60px;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.4), rgba(251, 146, 60, 0.4));
    bottom: 15%; right: 25%;
    animation-delay: 1.5s;
}

.el-5 {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(168, 85, 247, 0.4));
    top: 50%; left: 50%;
    border-radius: 50%;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-20px) rotate(5deg); opacity: 1; }
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.55), transparent);
    animation: linePulse 4.2s ease-in-out infinite;
    filter: saturate(1.05);
    opacity: 0.9;
}

.l-1 { width: 200px; top: 35%; left: 20%; transform: rotate(15deg); animation-delay: 0s; }
.l-2 { width: 150px; top: 50%; right: 30%; transform: rotate(-20deg); animation-delay: 1s; }
.l-3 { width: 180px; bottom: 30%; left: 35%; transform: rotate(10deg); animation-delay: 2s; }

@keyframes linePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.canvas-text {
    position: absolute;
    background: rgba(0,0,0,0.18);
    border-radius: 6px;
    animation: textGlow 4.2s ease-in-out infinite;
    border: 1px solid rgba(13, 148, 136, 0.16);
    padding: 6px 8px;
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.02em;
}

.t-1 { width: 60px; height: 12px; top: 20%; left: 35%; animation-delay: 0s; }
.t-2 { width: 80px; height: 10px; bottom: 40%; right: 20%; animation-delay: 1s; }
.t-3 { width: 50px; height: 8px; top: 60%; left: 25%; animation-delay: 2s; }

@keyframes textGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== SERVICES ===== */
.services-section {
    padding: 120px 0;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}



.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.s-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
    min-height: 280px;
    display: flex;
    gap: 0;
    backdrop-filter: blur(10px);
}

.s-card:hover {
    border-color: rgba(0,0,0,0.08);
}

.s-content {
    padding: 2rem 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

/* Mockup area */
.s-mockup {
    width: 180px;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Ink blob decoration */
.s-mockup::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    pointer-events: none;
    opacity: 0.08;
    background: radial-gradient(circle, currentColor, transparent 70%);
}

.s-card:nth-child(1) .s-mockup::after { color: #0d9488; }
.s-card:nth-child(2) .s-mockup::after { color: #7c3aed; }
.s-card:nth-child(3) .s-mockup::after { color: #f59e0b; }
.s-card:nth-child(4) .s-mockup::after { color: #2563eb; }
.s-card:nth-child(5) .s-mockup::after { color: #e11d48; }

/* ===== SERVER RACK MOCKUP ===== */
.sm-rack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    border-radius: 10px;
    width: 80%;
    border: 1px solid rgba(13,148,136,0.15);
}

.sm-rack-unit {
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(13,148,136,0.12), rgba(13,148,136,0.04));
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
    animation: smRackPulse 2s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
}

.sm-rack-unit span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.sm-rack-unit span:nth-child(1) { background: #0d9488; box-shadow: 0 0 6px rgba(13,148,136,0.6); }
.sm-rack-unit span:nth-child(2) { background: #7c3aed; box-shadow: 0 0 6px rgba(124,58,237,0.6); }
.sm-rack-unit span:nth-child(3) { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.6); }

@keyframes smRackPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.8; }
    50% { transform: scaleX(1.02); opacity: 1; }
}

/* ===== BROWSER MOCKUP ===== */
.sm-browser {
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
    border: 1px solid rgba(13,148,136,0.1);
}

.sm-browser-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(13,148,136,0.04);
    border-bottom: 1px solid rgba(13,148,136,0.06);
}

.sm-browser-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(13,148,136,0.2);
}

.sm-browser-url {
    font-size: 0.5rem;
    font-family: 'Fira Code', monospace;
    color: #0d9488;
    margin-left: auto;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(13,148,136,0.06);
}

.sm-browser-content {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sm-browser-content div {
    height: 5px;
    border-radius: 3px;
}

.sm-browser-content div:nth-child(1) { width: 70%; background: linear-gradient(90deg, #0d9488, #7c3aed); opacity: 0.15; }
.sm-browser-content div:nth-child(2) { width: 50%; background: linear-gradient(90deg, #7c3aed, #0d9488); opacity: 0.12; }
.sm-browser-content div:nth-child(3) { width: 60%; background: linear-gradient(90deg, #0d9488, #2563eb); opacity: 0.1; }

/* ===== ARTBOARD MOCKUP ===== */
.sm-artboard {
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(124,58,237,0.1);
    background: linear-gradient(135deg, #f5f3ff, #faf5ff);
}

.sm-artboard-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: rgba(124,58,237,0.04);
    border-bottom: 1px solid rgba(124,58,237,0.06);
}

.sm-artboard-toolbar span {
    width: 14px;
    height: 4px;
    border-radius: 2px;
}

.sm-artboard-toolbar span:nth-child(1) { background: #7c3aed; opacity: 0.2; }
.sm-artboard-toolbar span:nth-child(2) { width: 24px; background: #0d9488; opacity: 0.15; }
.sm-artboard-toolbar span:nth-child(3) { background: #f59e0b; opacity: 0.2; }

.sm-artboard-canvas {
    padding: 12px;
    color: hsla(320, 70%, 50%, 0.35);
}

.sm-artboard-canvas svg {
    width: 100%;
    height: auto;
}

/* ===== TERMINAL MOCKUP ===== */
.sm-terminal {
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 10px 12px;
    font-family: 'Fira Code', monospace;
    font-size: 0.5rem;
    line-height: 1.7;
    border: 1px solid rgba(13,148,136,0.15);
}

.sm-term-line {
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.sm-term-prompt {
    color: #5eead4;
    margin-right: 4px;
    text-shadow: 0 0 6px rgba(94,234,212,0.3);
}

.sm-term-green {
    color: #5eead4;
    opacity: 0.7;
    text-shadow: 0 0 4px rgba(94,234,212,0.2);
}

.sm-term-blink {
    animation: cursorPulse 0.8s step-end infinite;
    color: #5eead4;
}

/* ===== NEURAL NETWORK MOCKUP ===== */
.sm-network {
    width: 90%;
}

.sm-net-svg {
    width: 100%;
    height: auto;
    color: #0d9488;
    animation: smNetPulse 3s ease-in-out infinite;
}

@keyframes smNetPulse {
    0%, 100% { opacity: 0.4; filter: drop-shadow(0 0 2px rgba(13,148,136,0.2)); }
    50% { opacity: 0.8; filter: drop-shadow(0 0 6px rgba(13,148,136,0.4)); }
}

/* Ink splatter accent in each mockup area */
.s-mockup::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    pointer-events: none;
    bottom: -20px;
    right: -20px;
    opacity: 0.06;
}

.s-card:nth-child(1) .s-mockup::before {
    background: radial-gradient(circle, #0d9488, transparent);
}
.s-card:nth-child(2) .s-mockup::before {
    background: radial-gradient(circle, #7c3aed, transparent);
}
.s-card:nth-child(3) .s-mockup::before {
    background: radial-gradient(circle, #f59e0b, transparent);
}
.s-card:nth-child(4) .s-mockup::before {
    background: radial-gradient(circle, #2563eb, transparent);
}
.s-card:nth-child(5) .s-mockup::before {
    background: radial-gradient(circle, #e11d48, transparent);
}

/* Subtle rotating conic gradient background */
.s-card .s-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent,
        hsla(var(--hue, 180), 60%, 50%, 0.008),
        transparent 25%,
        hsla(var(--hue, 180), 60%, 50%, 0.008),
        transparent 50%,
        hsla(var(--hue, 180), 60%, 50%, 0.03),
        transparent 75%,
        hsla(var(--hue, 180), 60%, 50%, 0.03),
        transparent
    );
    animation: sBgRotate 20s linear infinite;
    pointer-events: none;
    transition: opacity 0.6s ease;
    opacity: 0.5;
}

.s-card:hover .s-bg {
    opacity: 1;
}

@keyframes sBgRotate {
    to { transform: rotate(360deg); }
}

/* Thin light accent line on top */
.s-card .s-accent {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        hsla(var(--hue, 180), 60%, 50%, 0.15),
        transparent
    );
    pointer-events: none;
}

/* Zen circle ornament top-right */
.s-card .s-ornament {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 130px;
    height: 130px;
    border: 1px solid hsla(var(--hue, 180), 60%, 55%, 0.03);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.6s ease;
}

.s-card:hover .s-ornament {
    width: 140px;
    height: 140px;
    border-color: hsla(var(--hue, 180), 60%, 55%, 0.06);
}

.s-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem;
    background: hsla(var(--hue, 180), 50%, 95%, 0.8);
    color: hsl(var(--hue, 180), 55%, 40%);
    transition: all 0.3s ease;
}

.s-card:hover .s-icon {
    background: hsla(var(--hue, 180), 40%, 90%, 0.9);
}

.s-icon i { width: 20px; height: 20px; }

.s-card h3 {
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 0.5rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.s-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 400;
    max-width: 100%;
}

.s-tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    color: hsl(var(--hue, 180), 55%, 45%);
    background: hsla(var(--hue, 180), 50%, 95%, 0.9);
    padding: 0.25rem 0.8rem;
    letter-spacing: 0.03em;
    border-radius: 20px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.s-card:hover .s-tag {
    background: hsla(var(--hue, 180), 40%, 90%, 0.95);
}

/* Typing line styles */
.typing-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: pre-wrap;
}

.typing-cmd {
    color: var(--primary);
}

.typing-success {
    color: #475569;
}

.typing-success span {
    color: #0d9488;
}

.typing-info {
    color: #64748b;
}

.code-line {
    color: #1e293b;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre;
}

/* Explorer glow */
.explorer-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(13,148,136,0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Embedded window frame */
.explorer-window {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.explorer-header {
    background: var(--bg-section);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.explorer-body {
    min-height: 450px;
    background: #fafbfc;
    position: relative;
    overflow-y: auto;
}

.s-card > * {
    position: relative;
    z-index: 1;
}

/* Washi paper texture */
.s-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0.025;
    pointer-events: none;
}

/* Hanafuda-style dual accent bar */
.s-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5eead4, hsl(var(--hue, 200), 80%, 55%));
    opacity: 0.8;
}

/* Hanafuda flower motif (background decorative) */
.s-card .s-motif {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, hsla(var(--hue, 200), 80%, 55%, 0.06), transparent 70%);
    pointer-events: none;
}

.s-card:hover .s-motif {
    opacity: 0.15;
}

.s-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.s-icon {
    width: 48px;
    height: 48px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.25rem;
    color: var(--primary);
    transition: all 0.4s ease;
    background: rgba(94, 234, 212, 0.05);
}

.s-card:hover .s-icon {
    background: rgba(94, 234, 212, 0.12);
    border-color: hsl(var(--hue, 200), 80%, 55%);
    color: hsl(var(--hue, 200), 80%, 55%);
    transform: scale(1.05);
}

.s-icon i { width: 22px; height: 22px; }

.s-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f0e6d3;
    letter-spacing: 0.03em;
}

.s-card p {
    font-size: 0.85rem;
    color: #9a8b7a;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.s-tag {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 0.55rem;
    font-weight: 700;
    color: #5eead4;
    border: 1px solid rgba(13, 148, 136, 0.4);
    padding: 0.2rem 0.6rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.s-card:hover .s-tag {
    opacity: 1;
    border-color: #5eead4;
    background: rgba(13, 148, 136, 0.08);
}

/* ===== WHATSAPP WIDGET ===== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.wa-toggle {
    width: 56px;
    height: 56px;
    border: 2px solid #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    animation: toggleGlow 8s ease-in-out infinite alternate;
}

.wa-toggle:hover {
    transform: translate(-2px, -2px);
}

@keyframes toggleGlow {
    0% { box-shadow: 0 0 24px rgba(37,99,235,0.2), 3px 3px 0px rgba(0,0,0,0.15); }
    100% { box-shadow: 0 0 24px rgba(37,211,102,0.2), 3px 3px 0px rgba(0,0,0,0.15); }
}

.wa-toggle-inner {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: toggleFloat 3s ease-in-out infinite;
}

@keyframes toggleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.wa-toggle-signal {
    position: absolute;
    inset: 0;
    color: rgba(15,23,42,0.2);
}

.wa-toggle-robot {
    position: relative;
    z-index: 1;
    color: #0f172a;
    stroke: #0f172a;
}

/* Robot idle animations */
.wa-r-head {
    animation: robotBreathe 4s ease-in-out infinite;
}

@keyframes robotBreathe {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.02); }
}

.wa-r-eye-l, .wa-r-eye-r {
    transform-origin: center;
    animation: robotBlink 4s ease-in-out infinite;
}

.wa-r-eye-r { animation-delay: 0.05s; }

@keyframes robotBlink {
    0%, 96%, 100% { transform: scaleY(1); }
    97% { transform: scaleY(0.1); }
    99% { transform: scaleY(1); }
}

.wa-r-antenna {
    transform-origin: 20px 15px;
    animation: antennaWiggle 3s ease-in-out infinite;
}

@keyframes antennaWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

.wa-r-antball {
    transform-origin: 20px 5px;
    animation: antballWiggle 3s ease-in-out infinite;
}

@keyframes antballWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
}

.wa-r-mouth {
    animation: mouthMove 4s ease-in-out infinite;
}

@keyframes mouthMove {
    0%, 90%, 100% { transform: scaleX(1); }
    93% { transform: scaleX(0.85); }
    96% { transform: scaleX(1); }
}

.wa-wave-1, .wa-wave-2, .wa-wave-3 {
    transform-origin: 28px 28px;
    animation: waSignalPulse 3s ease-out infinite;
}

.wa-wave-2 { animation-delay: 0.8s; }
.wa-wave-3 { animation-delay: 1.6s; }

@keyframes waSignalPulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.8); opacity: 0; }
}

.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    max-height: 420px;
    background: #ffffff;
    border: 2px solid #0f172a;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.wa-popup.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    animation: popupBorderCycle 10s ease-in-out infinite alternate;
}

@keyframes popupBorderCycle {
    0% { border-color: #2563eb; box-shadow: 4px 4px 0px rgba(37,99,235,0.2); }
    100% { border-color: #25D366; box-shadow: 4px 4px 0px rgba(37,211,102,0.2); }
}

.wa-header {
    padding: 1rem 1.25rem;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border-bottom: 2px solid #0f172a;
}

.wa-avatar {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.15);
}

.wa-avatar svg {
    width: 28px;
    height: 28px;
}

.online-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border: 1.5px solid #ffffff;
    border-radius: 2px;
}

.wa-info strong {
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
}

.wa-info span {
    font-size: 0.7rem;
    opacity: 0.85;
}

.wa-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15,23,42,0.06);
    border: none;
    color: #0f172a;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.wa-close:hover { background: rgba(15,23,42,0.12); }

.wa-body {
    padding: 1rem;
    background: #f8fafc;
    min-height: 250px;
    max-height: 290px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.wa-msg {
    max-width: 85%;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 4px;
    animation: msgIn 0.3s ease;
}

.wa-msg.bot {
    background: white;
    border: 2px solid rgba(15,23,42,0.1);
    align-self: flex-start;
}

.wa-msg.user {
    background: rgba(37,99,235,0.06);
    border: 2px solid rgba(37,99,235,0.15);
    align-self: flex-end;
}

.wa-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.wa-opt-btn {
    background: #ffffff;
    border: 2px solid rgba(15,23,42,0.1);
    padding: 0.6rem 1rem;
    text-align: left;
    font-family: inherit;
    font-size: 0.8rem;
    color: #0f172a;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s;
}

.wa-opt-btn:hover {
    background: rgba(37,99,235,0.06);
    border-color: rgba(37,99,235,0.3);
}

.wa-footer {
    display: flex;
    gap: 8px;
    padding: 0.75rem;
    background: white;
    border-top: 2px solid rgba(15,23,42,0.1);
}

.wa-footer input {
    flex: 1;
    border: 2px solid #e2e8f0;
    padding: 0.6rem;
    font-family: inherit;
    font-size: 0.85rem;
    border-radius: 4px;
}

.wa-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.15s;
    white-space: nowrap;
}

.wa-send-btn:hover {
    background: #1ea952;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== CONTACT SECTION ===== */
.contact-section { 
    padding: 100px 0; 
}

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.form-response-pixel {
    display: none;
    margin-top: 20px;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    text-align: center;
    border: 2px solid transparent;
}
.form-response-pixel.success {
    background: rgba(0, 255, 0, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}
.form-response-pixel.error {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff3333;
    color: #ff3333;
}

@keyframes textCycle {
    0% { color: var(--primary); }
    100% { color: var(--neon-green); }
}

.contact-info p {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem; 
    margin-bottom: 1.5rem; 
}

input, textarea {
    background: #ffffff;
    border: 2px solid rgba(0,0,0,0.08);
    color: #0f172a;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-radius: 8px;
    width: 100%;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.contact-form .btn-primary {
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: #0a0f1a;
    font-weight: 700;
    transition: all 0.3s;
    width: 100%;
    padding: 1rem;
    cursor: pointer;
}

.contact-form .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer { 
    padding: 60px 0 0; 
    border-top: 1px solid var(--border); 
    background: var(--bg-elevated); 
}

.footer-content { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    align-items: start; 
    margin-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-social a i {
    width: 16px;
    height: 16px;
}

.footer-social a:hover {
    color: var(--primary);
}

.f-social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.f-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.f-social-icons a i {
    width: 18px;
    height: 18px;
}

.f-social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Reduced motion: görsel kalitesini bozmadan animasyonları azalt */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    /* Three.js canvas arka planı göz yormasın */
    #canvas-container {
        opacity: 0.45;
    }

    .canvas-grid {
        animation: none !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .contact-card { 
        grid-template-columns: 1fr; 
        padding: 2.5rem; 
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn { display: none; }
    .menu-toggle { display: block; }
    .form-group { grid-template-columns: 1fr; }
    
    .hero-v8 {
        padding-top: 140px;
    }
    
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .s-card {
        flex-direction: column;
    }
    
    .s-mockup {
        width: 100%;
        min-width: 100%;
        padding: 0 1.5rem 1.5rem;
    }
}

.projects-section {
    padding: 120px 0;
    background: var(--bg-section);
    position: relative;
}



.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    display: block;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: 0 24px 60px rgba(13, 148, 136, 0.12);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 234, 212, 0.2), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before { opacity: 1; }

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-thumb {
    height: 200px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    position: absolute;
    inset: 0;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.thumb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.thumb-loading i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    opacity: 0.5;
    animation: thumbPulse 2s ease-in-out infinite;
}

.thumb-fallback {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    word-break: break-all;
}

@keyframes thumbPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-sector {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-url {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.project-card:hover .project-url {
    color: var(--secondary);
}

/* ===== TESTIMONIALS — HANAFUDA INSPIRED ===== */
.testimonials-section {
    padding: 120px 0;
    background: #1a1620;
    position: relative;
}

.testimonials-section .section-header h2 {
    background: linear-gradient(135deg, #7c3aed, #5eead4, #4a6fa5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #1e1926;
    border: 1px solid rgba(13, 148, 136, 0.12);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.testimonial-content p {
    font-size: 0.95rem;
    color: #9a8b7a;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid #5eead4;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1rem;
    border-top: 1px solid rgba(13, 148, 136, 0.1);
}

.testimonial-author strong {
    font-size: 0.9rem;
    color: #f0e6d3;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: #5eead4;
    font-family: 'Fira Code', monospace;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PREMIUM ANIMATIONS ===== */
@keyframes heroTextReveal {
    from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroBadgePop {
    from { opacity: 0; transform: scale(0.85) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes heroCtaSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-v8 h1 {
    animation: heroTextReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-v8 .hero-badge {
    animation: heroBadgePop 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-v8 .hero-cta {
    animation: heroCtaSlide 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* Card stagger entrance */
.s-card {
    animation: cardSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.s-card:nth-child(1) { animation-delay: 0.05s; }
.s-card:nth-child(2) { animation-delay: 0.12s; }
.s-card:nth-child(3) { animation-delay: 0.19s; }
.s-card:nth-child(4) { animation-delay: 0.26s; }
.s-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced card hover with 3D tilt */
.s-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

.s-card:hover {
    transform: translateY(-6px) rotateX(1.5deg) rotateY(-1.5deg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(13, 148, 136, 0.08);
}

/* Gradient border on hover */
.s-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, var(--primary), transparent 40%, var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.s-card:hover::before {
    opacity: 0.6;
}

/* Premium button glow */
.btn-primary {
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.35), 0 0 0 1px rgba(13, 148, 136, 0.15);
}

/* Ambient glow behind sections */
.services-section,
.projects-section {
    position: relative;
}

.services-section::after,
.projects-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(13, 148, 136, 0.04), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Project card enhanced hover */
.project-card {
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(13, 148, 136, 0.12);
}

/* Section header gradient */
.section-header h2 {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Smooth will-change hints */
.s-card, .project-card, .btn-primary {
    will-change: transform, box-shadow;
}

/* Ink texture overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.01) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.01) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(13,148,136,0.005) 0%, transparent 60%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
}

/* Footer gradient top border */
.footer {
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.2), transparent) 1;
}

/* Contact form premium focus states */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(13, 148, 136, 0.4);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Reveal effect state */
body.revealing #canvas-container {
    opacity: 0.3;
    transition: opacity 0.8s;
}

body.revealed #canvas-container {
    opacity: 0.8;
}

/* Logo animation */
.logo span {
    display: inline-block;
}

/* Isometric Room preview pane */
#isometric-room-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#isometric-room-canvas canvas {
    display: block;
}

/* Displacement canvas on project cards */
.project-thumb {
    position: relative;
    overflow: hidden;
}

.disp-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Services Path Slider (legacy) */
.services-slider-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    z-index: 1;
}

.path-slider {
    position: relative;
    display: inline-block;
    width: 500px;
    height: 380px;
    max-width: 100%;
}

.path-slider svg {
    width: 100%;
    height: 100%;
}

.path-slider__path {
    stroke: rgba(13, 148, 136, 0.15);
    stroke-width: 1px;
    fill: none;
    stroke-dasharray: 3 5;
}

.path-slider__item {
    position: absolute;
    left: -105px;
    top: -28px;
    width: 210px;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transform-origin: 50% 50%;
    z-index: 2;
    transition: filter 0.4s ease;
}

.item__bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(26, 22, 30, 0.8);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.4s ease;
}

.item__bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(26, 22, 30, 0.8);
    border-right: 1px solid rgba(13, 148, 136, 0.2);
    border-bottom: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 0 0 3px 0;
}

.path-slider__item:hover .item__bubble {
    border-color: rgba(13, 148, 136, 0.4);
    background: rgba(30, 25, 38, 0.85);
}

.item__icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    stroke-width: 1.5;
}

.item__bubble-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.item__bubble-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
}

.item__bubble-tag {
    font-size: 0.55rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
    line-height: 1.2;
}

.path-slider__current-item .item__bubble {
    border-color: var(--primary);
    background: rgba(30, 25, 38, 0.95);
    box-shadow: 0 0 30px rgba(13, 148, 136, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.path-slider__current-item .item__bubble-title {
    color: var(--primary);
}

.path-slider__current-item .item__bubble-tag {
    opacity: 1;
}

.path-slider__item:not(.path-slider__current-item) {
    filter: brightness(0.6) saturate(0.4);
}

.path-slider__item:not(.path-slider__current-item):hover {
    filter: brightness(0.8) saturate(0.7);
}

/* Services particles canvas */
.services-section {
    position: relative;
}

#services-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

/* Mobile performance */
@media (prefers-reduced-motion: reduce) {
    .hero-v8 h1, .hero-v8 .hero-badge, .hero-v8 .hero-cta,
    .s-card, .section-header h2 {
        animation: none;
    }
}

/* ===== SERVICES GRID V2 ===== */
.services-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 20px;
    padding: 2.25rem;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37,99,235,0.25), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover::before {
    opacity: 1;
}

.service-num {
    position: absolute;
    top: 1.75rem;
    right: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(0,0,0,0.18);
    letter-spacing: 0.05em;
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1.25rem;
    color: #0f172a;
    stroke-width: 1.3;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
    transition: gap 0.3s ease;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link {
    gap: 0.6rem;
}

.service-card:hover .service-link svg {
    transform: translateX(3px);
}

.services-grid-v2 .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
}

@media (max-width: 768px) {
    .services-grid-v2 {
        grid-template-columns: 1fr;
    }
    .services-grid-v2 .service-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
    }
    .service-card {
        padding: 1.75rem;
    }
}

/* ===== EXPLORER ROTATOR ===== */
.explorer-tabs {
    display: flex;
    gap: 0.25rem;
}

.tab-btn {
    background: rgba(15,23,42,0.03);
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: rgba(15,23,42,0.3);
    transition: all 0.35s ease;
}

.tab-btn.active {
    color: #0d9488;
    background: rgba(13,148,136,0.06);
}

.explorer-rotator-dots {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
    justify-content: center;
}

.er-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid rgba(15,23,42,0.15);
    cursor: pointer;
    transition: all 0.35s ease;
}

.er-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 22px;
    border-radius: 3px;
}

/* ===== PROJECT GRADIENT THUMBS ===== */
.project-thumb {
    position: relative;
    overflow: hidden;
    background: var(--bg, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}

.thumb-domain {
    position: relative;
    z-index: 1;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.03em;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.1);
}

.project-card:hover .project-thumb::after {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ===== PHONE + QR SECTION ===== */
.phone-qr-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.phone-qr-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.04), transparent 70%);
    pointer-events: none;
}

.pq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.pq-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pq-text p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.pq-stats {
    display: flex;
    gap: 2.5rem;
}

.pq-stat {
    display: flex;
    flex-direction: column;
}

.pq-stat-num {
    font-family: 'Fira Code', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
}

.pq-stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.pq-visuals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    text-decoration: none;
    display: block;
}

.phone-frame {
    width: 190px;
    height: 380px;
    background: #000;
    border-radius: 32px;
    padding: 5px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    position: relative;
}

.phone-screen {
    position: relative;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #0a0a0f;
    display: flex;
    flex-direction: column;
}

.phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 6px;
}

.phone-time {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

.phone-battery {
    width: 18px;
    height: 9px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    padding: 1px;
    display: flex;
    align-items: center;
}

.phone-battery span {
    width: 70%;
    height: 100%;
    background: #22c55e;
    border-radius: 1px;
}

.phone-terminal {
    padding: 8px 16px;
    font-family: 'Fira Code', monospace;
    font-size: 0.5rem;
    line-height: 1.8;
    height: calc(100% - 40px);
}

.phone-term-content {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

.phone-term-content::-webkit-scrollbar { display: none; }

.phone-term-line {
    white-space: nowrap;
    overflow: hidden;
    color: rgba(255,255,255,0.7);
}

.phone-prompt {
    color: #2563eb;
    font-weight: 600;
}

.phone-success {
    color: #22c55e;
}

.phone-muted {
    color: rgba(255,255,255,0.35);
}

.phone-cursor {
    display: inline-block;
    animation: cursorPulse 0.8s step-end infinite;
    color: #2563eb;
    font-size: 0.5rem;
}

.phone-home {
    display: flex;
    justify-content: center;
    padding: 6px 0 8px;
}

.phone-home span {
    width: 28px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 440px;
    border-radius: 50px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.08), transparent 70%);
    pointer-events: none;
    animation: phoneGlow 4s ease-in-out infinite;
}

@keyframes phoneGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes phoneType {
    0% { width: 0; }
    50% { width: 20ch; }
    90% { width: 20ch; }
    100% { width: 0; }
}

/* High-tech Processor Style QR Code */
.qr-code {
    position: relative;
    padding: 12px;
    background: radial-gradient(circle at center, rgba(37,99,235,0.08) 0%, transparent 70%);
}

/* Microchip pins around the QR code */
.qr-code::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px; bottom: 0;
    border-left: 2px dashed rgba(37, 99, 235, 0.4);
    border-right: 2px dashed rgba(37, 99, 235, 0.4);
    pointer-events: none;
    z-index: 1;
}

.qr-code::after {
    content: '';
    position: absolute;
    top: 16px; bottom: 16px; left: 0; right: 0;
    border-top: 2px dashed rgba(37, 99, 235, 0.4);
    border-bottom: 2px dashed rgba(37, 99, 235, 0.4);
    pointer-events: none;
    z-index: 1;
}

.qr-frame {
    width: 150px;
    height: 150px;
    background: #090a0f;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 2px solid #2563eb;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.25), inset 0 0 15px rgba(37, 99, 235, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Processor corner marks */
.qr-frame::before {
    content: 'BYMENTIS';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #090a0f;
    padding: 0 8px;
    font-size: 8px;
    font-weight: 800;
    color: #3b82f6;
    letter-spacing: 1px;
    border: 1px solid #2563eb;
    border-radius: 4px;
}

.qr-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(37, 99, 235, 0.4), inset 0 0 20px rgba(37, 99, 235, 0.2);
    border-color: #3b82f6;
}

.qr-real {
    width: 100%;
    height: auto;
    border-radius: 6px;
    filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.2));
}

.qr-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fira Code', monospace;
    font-size: 9px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0.8;
}

@keyframes phoneTyping {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.phone-cursor {
    animation: phoneTyping 0.6s step-end infinite;
}

@media (max-width: 768px) {
    .pq-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .pq-stats {
        justify-content: center;
    }
    .pq-visuals {
        flex-direction: column;
    }
}
