/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    
    --accent-primary: #f8f9fa;
    --accent-secondary: #e9ecef;
    --accent-tertiary: #dee2e6;
    --accent-hover: #ffffff;
    
    --text-primary: #e0e0e0;
    --text-secondary: #b8b8b8;
    --text-muted: #6b6b6b;
    --border-color: #2a2a35;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(248, 249, 250, 0.1);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: #fff;
    color: #000;
}

::selection {
    background: #fff;
    color: invert;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
}

html,
body {
    overflow: auto;
    cursor: none !important;
}

/* Hide scrollbar */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-full {
    width: 100%;
    padding: 0;
}

/* Custom Cursor */
.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    cursor: none !important;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.cursor-hover .cursor {
    transform: scale(2.5);
    cursor: none !important;
}

body.cursor-hover .cursor-follower {
    transform: scale(1.8);
    cursor: none !important;
}

/* Navigation Hint */
.nav-hint {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(20, 24, 38, 0.95);
    border: 1px solid rgba(248, 249, 250, 0.15);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transition: opacity var(--transition-base);
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
}

.nav-hint svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.nav-hint.visible {
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-base);
    padding: 1.5rem 0;
    border-bottom: 0px solid var(--border-color);
}

.navbar.scrolled {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    transition: var(--transition-fast);
}

.logo-img {
    width: 40px;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    transition: var(--transition-base);
}

/* Desktop: Hide contact button when scrolled */
.navbar.scrolled .nav-menu li:not(:last-child) {
    display: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    position: relative;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.nav-menu a:not(.btn-primary-nav):hover {
    color: var(--accent-primary);
}

.nav-menu a:not(.btn-primary-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-fast);
    border-radius: var(--radius-full);
}

.nav-menu a:not(.btn-primary-nav):hover::after {
    width: 100%;
}

.btn-primary-nav {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: var(--bg-primary) !important;
    font-size: 0.8125rem;
}

.btn-primary-nav:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-glow);
}

/* Mobile wrapper */
.nav-mobile-wrapper {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-contact {
    display: none;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: var(--transition-base);
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: var(--transition-fast);
}

.mobile-menu-close:hover {
    background: var(--bg-secondary);
    border-color: rgba(248, 249, 250, 0.3);
    transform: rotate(90deg);
}

.mobile-menu-close svg {
    color: var(--accent-primary);
}

.mobile-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu-list a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-menu-list a:hover {
    color: var(--accent-primary);
}

/* Section Title in Navbar */
.nav-section-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-section-title.visible {
    transform: translateX(-50%) translateY(-110%);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.grid-pattern {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(248, 249, 250, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 249, 250, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 40s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 249, 250, 0.02) 0%, transparent 70%);
    animation: float 25s infinite ease-in-out;
}

.floating-particles::before {
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.floating-particles::after {
    bottom: -200px;
    right: -200px;
    animation-delay: 12.5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 120px) scale(1.3); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-quote {
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
}

.hero-quote p {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-style: italic;
    color: var(--accent-primary);
    position: relative;
}

.hero-quote p::before {
    content: '"';
    position: absolute;
    left: -1.5rem;
    top: -0.5rem;
    font-size: 4rem;
    opacity: 0.2;
}

.hero-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 0.875rem 1.25rem;
    background: rgba(248, 249, 250, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(248, 249, 250, 0.1);
    transition: var(--transition-base);
}

.stat-item:hover {
    background: rgba(248, 249, 250, 0.05);
    border-color: rgba(248, 249, 250, 0.2);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Project Preview Container with 3D Effect */
.project-preview-container {
    position: relative;
    width: 100%;
    height: 500px;
    animation: fadeInRight 1s ease-out 0.8s both;
    perspective: 1000px;
}

.project-preview-card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.02);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(248, 249, 250, 0.1);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease-out;
}

.preview-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

.project-preview-node {
    position: absolute;
    aspect-ratio: 26 / 34;
    width: auto;
    min-width: 60%;
    max-width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-node-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 2px solid rgba(248, 249, 250, 0.12);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.preview-node-container:hover {
    border-color: rgba(248, 249, 250, 0.35);
    box-shadow: 0 12px 50px rgba(0,0,0,0.7);
    transform: scale(1.03);
}

.preview-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    user-select: none;
    transform: scale(1.20);
    pointer-events: none;
}

.preview-node-container:hover .preview-card-image {
    transform: scale(1);
    transform: translateY(-10px);
}

.preview-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        transparent 0%,
        transparent 40%,
        rgba(0,0,0,0.15) 100%
    );
    pointer-events: none;
}

.preview-node-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.9rem 1rem 1rem;
    background: #1a1a1a;
    z-index: 2;
    text-align: left;
}

.preview-node-company {
    display: flex;
    align-items: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.preview-node-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.preview-node-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-start;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    display: inline-block;
    border: none;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(248, 249, 250, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-tertiary);
}

.btn-secondary:hover {
    background: rgba(248, 249, 250, 0.05);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 0.9375rem;
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-primary);
}

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

/* Services Section */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.service-block {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-base);
    animation: fadeInUp 0.6s ease-out both;
    overflow: hidden;
}

.service-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248, 249, 250, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
}

.service-block:hover {
    border-color: rgba(248, 249, 250, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(248, 249, 250, 0.1);
}

.service-block:hover .service-glow {
    opacity: 1;
}

.service-block h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-primary);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* Portfolio Universe */
.portfolio {
    /* min-height: 100vh; */
    background: var(--bg-primary);
    position: relative;
    padding-bottom: 0;
}

.star-universe {
    position: relative;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    margin: 0;
    background: 
        radial-gradient(ellipse at center, rgba(248, 249, 250, 0.02) 0%, transparent 70%),
        linear-gradient(rgba(248, 249, 250, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 249, 250, 0.005) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    touch-action: none;
    overscroll-behavior: none;
}

.universe-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

.universe-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    cursor: none;
}

.universe-viewport.grabbing {
    cursor: none;
    transition: none;
}

.universe-star {
    position: absolute;
    cursor: none;
}

/* ─── PROJECT CARD (image style) ─── */
.star-node {
    display: block;
    position: relative;
    width: 175px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 2px solid rgba(248, 249, 250, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    flex-direction: unset;
    align-items: unset;
    gap: unset;
    padding: 0;
    min-width: unset;
}

.star-node:hover {
    border-color: rgba(248, 249, 250, 0.35);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    transform: scale(1.06);
    z-index: 20;
}

/* Cover image */
.star-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 128px;
    object-fit: cover;
    transition: transform 0.4s ease, height 0.4s ease;
    display: block;
}

.star-node:hover .star-card-image {
    transform: scale(82.81);
    transform: translateY(-10px);
}

/* Gradient fade at top of image area */
.star-card-overlay {
    position: absolute;
    inset: 0;
    /* only fade the image part — bottom solid block handles the rest */
    background: linear-gradient(
        to top,
        transparent 0%,
        transparent 45%,
        rgba(0,0,0,0.15) 100%
    );
    transition: background 0.35s ease;
    pointer-events: none;
}

.star-node:hover .star-card-overlay {
    background: linear-gradient(
        to top,
        transparent 0%,
        transparent 40%,
        rgba(0,0,0,0.35) 100%
    );
}

/* Solid dark bottom block (always visible) */
.star-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.7rem 0.75rem 0.75rem;
    text-align: left;
    width: 100%;
    z-index: 2;
    background: #1a1a1a;
}

/* Company label — hidden by default, slides in on hover */
.star-company {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-company-logo {
    width: 14px;
    height: 14px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
    filter: brightness(0.85);
}

.star-node:hover .star-company {
    opacity: 1;
    max-height: 24px;
    transform: translateY(0);
}

.star-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.star-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-start;
}

.star-tags .tag {
    cursor: pointer;
    pointer-events: auto;
    border-color: rgba(255,255,255,0.2);
    background: rgba(248, 249, 250, 0.05);
    color: var(--accent-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(248, 249, 250, 0.1);
    transition: var(--transition-fast);
}

.star-tags .tag:hover {
    background: rgba(248, 249, 250, 0.1);
    border-color: rgba(248, 249, 250, 0.2);
    cursor: pointer;
}

/* hide old logo in image cards */
.star-logo {
    display: none;
}

.zoom-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 0.875rem 1.75rem;
    background: rgba(26, 26, 36, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(248, 249, 250, 0.1);
}

.zoom-level {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Project Detail */
.project-detail {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    overflow-y: auto;
}

.project-detail.active {
    opacity: 1;
    pointer-events: all;
}

.close-detail {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 2001;
    transition: var(--transition-fast);
}

.close-detail:hover {
    border-color: rgba(248, 249, 250, 0.3);
    background: var(--bg-secondary);
    transform: rotate(90deg);
}

.close-detail svg {
    color: var(--accent-primary);
}

.project-detail-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    animation: fadeInUp 0.6s ease-out;
}

.project-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-primary);
}

.project-meta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.project-meta-item {
    flex-direction: column;
    padding: 0.625rem 1.25rem;
    background: rgba(248, 249, 250, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(248, 249, 250, 0.1);
}

.project-meta-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-meta-value {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

.project-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

.project-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(248, 249, 250, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(248, 249, 250, 0.05);
}

.project-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-primary);
}

.project-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    font-size: 0.9375rem;
}

.project-section ul {
    list-style: none;
    padding-left: 0;
}

.project-section li {
    color: var(--text-secondary);
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.project-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* Biography Section */
.bio {
    background: var(--bg-secondary);
}

.bio-timeline {
    max-width: 700px;
    margin: var(--spacing-lg) auto;
    position: relative;
    padding-left: 3rem;
}

.bio-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent,
        rgba(248, 249, 250, 0.2) 10%,
        rgba(248, 249, 250, 0.2) 90%,
        transparent
    );
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.6s ease-out both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-year {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--accent-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 4px rgba(248, 249, 250, 0.1);
}

.timeline-year::after {
    content: attr(data-year);
    position: absolute;
    left: -3.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-primary);
    white-space: nowrap;
}

.timeline-content {
    background: rgba(248, 249, 250, 0.03);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition-base);
}

.timeline-content:hover {
    background: rgba(248, 249, 250, 0.05);
    border-color: rgba(248, 249, 250, 0.2);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bio-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bio-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.03);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.bio-stat:hover {
    background: rgba(248, 249, 250, 0.05);
    border-color: rgba(248, 249, 250, 0.2);
    transform: translateY(-5px);
}

.bio-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.bio-stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    padding: var(--spacing-sm);
    background: rgba(248, 249, 250, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(248, 249, 250, 0.05);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(248, 249, 250, 0.04);
    border-color: rgba(248, 249, 250, 0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(248, 249, 250, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
    border: 1px solid rgba(248, 249, 250, 0.1);
}

.contact-details h3 {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-details a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.contact-details a:hover {
    color: var(--accent-hover);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: var(--radius-md);
    padding: 0.875rem 1.125rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(248, 249, 250, 0.3);
    background: rgba(248, 249, 250, 0.03);
}

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

/* Service Selector */
.service-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-option {
    padding: 0.625rem 1.25rem;
    background: rgba(248, 249, 250, 0.05);
    border: 1px solid rgba(248, 249, 250, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: none;
    transition: var(--transition-fast);
    user-select: none;
}

.service-option:hover {
    background: rgba(248, 249, 250, 0.08);
    border-color: rgba(248, 249, 250, 0.2);
}

.service-option.selected {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.service-option.consult {
    background: rgba(248, 249, 250, 0.03);
}

.service-option.consult.selected {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.footer-right {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
}

.social-link:hover {
    color: var(--accent-primary);
    background: rgba(248, 249, 250, 0.05);
}

.noselect {
  user-select: none;      /* Стандартный синтаксис */
  -webkit-user-select: none; /* Для Chrome, Safari */
  -moz-user-select: none;    /* Для Firefox */
  -ms-user-select: none;     /* Для IE/Edge */
}

.year-node .star-node,
.tag-node .star-node {
    min-width: 120px;
    padding: 0.75rem 1rem;
    background: rgba(26, 26, 36, 0.95);
    border-color: rgba(248, 249, 250, 0.15);
}

.year-node .star-logo {
    background: rgba(100, 150, 255, 0.1);
    border-color: rgba(100, 150, 255, 0.3);
}

.tag-node .star-logo {
    background: rgba(150, 100, 255, 0.1);
    border-color: rgba(150, 100, 255, 0.3);
}

.year-node .star-title,
.tag-node .star-title {
    font-size: 0.875rem;
    color: var(--accent-primary);
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* font: var(--font-primary); */
}

.story-content p {
    /* color: #eaeaea; */
    line-height: 1.6;
    font-size: 15px;
}

.story-content p a {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 6px;
    transition: background .2s;
}

.story-content p a:hover {
    background: rgba(255,255,255,0.18);
}

.story-content p img {
    max-width: 100%;
    border-radius: 12px;
    margin: 12px 0;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.story-content p strong {
    color: #ffffff;
}

.story-content p em {
    opacity: 0.85;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .project-preview-container {
        order: -1;
        height: 400px;
    }
    
    .hero-quote p {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .bio-stats {
        grid-template-columns: 1fr;
    }
    
    /* Mobile navigation */
    .nav-menu {
        display: none;
    }
    
    .nav-mobile-wrapper {
        display: flex;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .navbar.scrolled .mobile-contact {
        display: block;
    }
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .nav-wrapper {
        padding: 0 var(--spacing-md);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-quote p {
        font-size: 1.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .project-preview-container {
        height: 350px;
    }
    
    .bio-timeline {
        padding-left: 2rem;
    }
    
    .timeline-year::after {
        left: -2.5rem;
        font-size: 0.75rem;
    }
    
    .star-universe {
        height: 70vh;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-quote p {
        font-size: 1.5rem;
    }
    
    body {
        font-size: 14px;
    }
}