/* //nark Portfolio - Futuristic Design 2026 */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --accent: #db097b;
    --accent-light: #ff1493;
    --accent-dark: #a30660;
    --accent-glow: rgba(219, 9, 123, 0.5);
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #2a2a2a;
}

*, *::before, *::after { box-sizing: border-box; }

html { 
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

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

/* Grid background */
.cyber-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(219, 9, 123, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(219, 9, 123, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-display { font-family: 'Orbitron', sans-serif; }

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

.glow-text {
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* Fade gradient at bottom of hero - subtle dark magenta */
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, rgba(20, 5, 15, 0.95) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.1;
    animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.1); }
}

/* Particles canvas - full hero */
.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content { position: relative; z-index: 1; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(219, 9, 123, 0.1);
    border: 1px solid rgba(219, 9, 123, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.status-pill .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

/* Typing animation prefix */
.typing-prefix {
    color: var(--text-primary);
    position: relative;
}

.typing-prefix::after {
    content: '|';
    position: absolute;
    right: -5px;
    color: var(--accent);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.2em;
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.hero-decoration .line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow));
}

.hero-decoration .line:last-child {
    background: linear-gradient(90deg, var(--accent-glow), transparent);
}

.hero-decoration .diamond {
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent-glow);
    transform: rotate(45deg);
    animation: diamondPulse 2s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% { border-color: var(--accent-glow); box-shadow: 0 0 5px var(--accent-glow); }
    50% { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    z-index: 5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* Corner decorations */
.corner-decor {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: rgba(219, 9, 123, 0.2);
    border-style: solid;
    border-width: 0;
}
.corner-decor.tl { top: 30px; left: 30px; border-top-width: 2px; border-left-width: 2px; }
.corner-decor.tr { top: 30px; right: 30px; border-top-width: 2px; border-right-width: 2px; }
.corner-decor.bl { bottom: 30px; left: 30px; border-bottom-width: 2px; border-left-width: 2px; }
.corner-decor.br { bottom: 30px; right: 30px; border-bottom-width: 2px; border-right-width: 2px; }

/* Category Panels */
.categories-section { 
    position: relative; 
    z-index: 1;
}

/* Fade-up gradient at top of categories - subtle dark magenta */
.categories-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, transparent 0%, rgba(20, 5, 15, 0.95) 100%);
    pointer-events: none;
    z-index: 10;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    /* Last odd item spans full width */
    .categories-grid .category-panel:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

.category-panel {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    padding-top: 80px; /* Space for fade effect */
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.category-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.7s;
    animation: videoFadeIn 1s ease-out forwards;
}

@keyframes videoFadeIn {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

.category-panel:hover .category-video {
    opacity: 0.65;
    transform: scale(1.05);
}

/* Magenta tint overlay on videos */
.category-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.3) 100%),
        rgba(219, 9, 123, 0.15);
    transition: background 0.5s;
}

.category-panel:hover .category-overlay {
    background: 
        linear-gradient(to right, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.2) 100%),
        rgba(219, 9, 123, 0.2);
}

/* Portfolio page hero with video */
.portfolio-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.portfolio-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.portfolio-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 70%, rgba(10,10,10,0.95) 100%),
        rgba(219, 9, 123, 0.1);
}

.portfolio-hero .particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.portfolio-hero .back-link {
    margin-bottom: 20px;
}

.category-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.category-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 15px;
}

.category-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.category-panel:hover .category-title { color: var(--accent); }

.category-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
    transition: left 0.5s;
}

.btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn:hover::before { left: 100%; }

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

/* Logo Wall */
.logo-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.logo-section-title {
    text-align: center;
    margin-bottom: 50px;
}

.logo-section-title span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.logo-wall {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
}

.logo-wall:hover { animation-play-state: paused; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Contact Section */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 100px 20px;
}

.contact-grid {
    display: grid;
    gap: 60px;
}

@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

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

.contact-link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-link:hover .contact-link-icon {
    border-color: var(--accent);
    background: rgba(219, 9, 123, 0.1);
}

.contact-link-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.contact-link-value { font-size: 1.1rem; }

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(219, 9, 123, 0.1);
}

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

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

.form-success {
    text-align: center;
    padding: 40px;
    border: 1px solid rgba(219, 9, 123, 0.3);
    border-radius: 10px;
    background: rgba(219, 9, 123, 0.05);
}

.form-success-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(219, 9, 123, 0.2);
    border-radius: 50%;
    color: var(--accent);
    font-size: 24px;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s;
}

.footer-logo:hover { color: var(--accent); }

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Portfolio Page */
.page-header {
    padding: 100px 20px 50px;
    border-bottom: 1px solid var(--border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 30px;
    transition: color 0.3s;
}

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

.page-title-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.page-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin: 10px 0 15px;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Portfolio Grid */
.portfolio-section {
    padding: 60px 20px;
}

.portfolio-grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(219, 9, 123, 0.15);
}

.portfolio-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

.portfolio-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 4px;
}

.portfolio-card-content { padding: 25px; }

.portfolio-card-client {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.portfolio-card-title {
    font-size: 1.25rem;
    margin: 8px 0 12px;
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.portfolio-card-tag {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    border-radius: 4px;
}

.portfolio-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s;
}

.portfolio-card-link:hover { gap: 12px; }

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-code {
    font-size: clamp(6rem, 25vw, 12rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    line-height: 1;
    position: relative;
}

.error-code::before,
.error-code::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.error-code::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: #ff00ff;
    z-index: -1;
}

.error-code::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: #00ffff;
    z-index: -2;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(1px, -1px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, 1px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, -1px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(1px, 2px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(65% 0 26% 0); transform: translate(2px, -2px); }
    20% { clip-path: inset(10% 0 75% 0); transform: translate(-1px, 1px); }
    40% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -2px); }
    60% { clip-path: inset(15% 0 62% 0); transform: translate(-2px, -1px); }
    80% { clip-path: inset(45% 0 34% 0); transform: translate(2px, 1px); }
    100% { clip-path: inset(28% 0 55% 0); transform: translate(-1px, -2px); }
}

.error-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 20px 0;
}

.error-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 400px;
}

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
