/* -------------------------------------------------------------
 * PREMIUM PORTFOLIO DESIGN SYSTEM & CSS SPEC
 * Theme: Ultra-Modern Dark Theme (Strictly Matte Black)
 * Inspired by ninjaaexe.com & zero.rip
 * Palette: Pure Blue & Cyan Tones (Excluding Greens)
 * ------------------------------------------------------------- */

/* Custom CSS Variables & Reset */
:root {
    --bg-primary: #050505;
    --bg-card: rgba(9, 9, 11, 0.4);
    --bg-card-hover: rgba(15, 15, 20, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    /* Pure Blue & Cyan Glow System */
    --cyan: #00E5FF;
    --cyan-glow: rgba(0, 229, 255, 0.12);
    --cyan-glow-heavy: rgba(0, 229, 255, 0.35);
    --blue: #0072F5;
    --blue-glow: rgba(0, 114, 245, 0.15);
    --blue-glow-heavy: rgba(0, 114, 245, 0.4);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Font family */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Backdrops (Native Gradient Glows - Math-based, no CPU filters) */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.glow-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.055) 0%, rgba(0, 229, 255, 0.025) 30%, rgba(0, 229, 255, 0.007) 60%, transparent 70%);
    top: -250px;
    left: -200px;
}

.glow-2 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 114, 245, 0.075) 0%, rgba(0, 114, 245, 0.035) 30%, rgba(0, 114, 245, 0.01) 60%, transparent 70%);
    bottom: -300px;
    right: -250px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    transition: width 0.2s, height 0.2s, background-color 0.3s;
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1px solid var(--blue);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    will-change: transform;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Click and Hover states for custom cursor (Scales are handled in JS to prevent layout reflows) */
body.cursor-hover .cursor-dot {
    background-color: var(--blue);
}

body.cursor-hover .cursor-outline {
    border-color: var(--cyan);
    background-color: rgba(0, 229, 255, 0.03);
}



/* Grid Backdrop overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* Reusable Components & Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-cyan { color: var(--cyan); }
.text-blue { color: var(--blue); }
.text-dim { color: var(--text-secondary); }

/* Buttons & CTA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}

.btn-primary.btn-glow:hover::after {
    opacity: 1;
    transform: scale(0.8);
}

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

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    border-radius: 6px;
}

.btn-nav:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn:hover .arrow-icon {
    transform: translateX(4px);
}

/* Headers */
.section-header {
    margin-bottom: 64px;
    width: 100%;
}

.section-header-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    font-family: monospace;
}

.section-header-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    font-family: monospace;
    text-transform: lowercase;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin-top: 16px;
}

/* -------------------------------------------------------------
 * NAVBAR
 * ------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    /* Removed backdrop-filter blurs to maximize scroll speed and avoid rendering latency */
    background-color: rgba(5, 5, 5, 0.95);
    transition: var(--transition-smooth);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--cyan);
    margin: 0 4px;
    font-weight: 400;
    text-shadow: 0 0 10px var(--cyan-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language selector */
.lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: monospace;
    letter-spacing: 0.05em;
}

.lang-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.mobile-toggle .bar {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-fast);
}

/* Mobile overlay nav */
.mobile-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background-color: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.mobile-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

.mobile-lang-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: monospace;
    font-size: 0.85rem;
}

.lang-label {
    color: var(--text-muted);
}

.btn-mobile-cta {
    margin-top: 16px;
    width: 240px;
    border: 1px solid var(--cyan);
    background-color: rgba(0, 229, 255, 0.05);
    color: var(--text-primary);
}

/* -------------------------------------------------------------
 * HERO SECTION
 * ------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--cyan);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hero-headline {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.05em;
    max-width: 900px;
}

.hero-subheadline {
    font-size: 1.35rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-subheadline .separator {
    color: var(--border-hover);
    margin: 0 8px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.mouse {
    width: 22px;
    height: 38px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 8px;
    background-color: var(--text-secondary);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* -------------------------------------------------------------
 * BENTO SERVICES GRID
 * ------------------------------------------------------------- */
.bento-section {
    border-bottom: 1px solid var(--border-color);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    transition: var(--transition-smooth);
    padding: 40px;
}

/* Grid span distributions */
.card-large {
    grid-column: span 7;
}

.card-medium {
    grid-column: span 5;
}

.card-web {
    background: radial-gradient(circle at 100% 100%, var(--cyan-glow) 0%, rgba(0,0,0,0) 60%), var(--bg-card);
}

.card-traffic {
    background: radial-gradient(circle at 100% 0%, var(--blue-glow) 0%, rgba(0,0,0,0) 60%), var(--bg-card);
}

.card-social {
    grid-column: span 12;
    min-height: 440px;
    flex-direction: row;
    align-items: center;
    background: radial-gradient(circle at 0% 100%, var(--cyan-glow) 0%, rgba(0,0,0,0) 50%), var(--bg-card);
}

.card-social .card-content {
    flex: 1;
    max-width: 50%;
}

.card-social .card-widget {
    flex: 1;
    max-width: 50%;
    margin-top: 0;
}

/* Hover effects */
.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background-color: var(--bg-card-hover);
}

.card-web:hover {
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.25);
}

.card-traffic:hover {
    box-shadow: 0 10px 30px rgba(0, 114, 245, 0.03);
    border-color: rgba(0, 114, 245, 0.25);
}

.card-social:hover {
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.03);
    border-color: rgba(0, 229, 255, 0.25);
}

/* Card details styling */
.card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.card-web:hover .card-icon-wrapper {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.3);
    background-color: rgba(0, 229, 255, 0.03);
}

.card-traffic:hover .card-icon-wrapper {
    color: var(--blue);
    border-color: rgba(0, 114, 245, 0.3);
    background-color: rgba(0, 114, 245, 0.03);
}

.card-social:hover .card-icon-wrapper {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.3);
    background-color: rgba(0, 229, 255, 0.03);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-features li::before {
    content: '//';
    color: var(--text-muted);
    font-weight: 700;
}

.card-web:hover .card-features li::before { color: var(--cyan); }
.card-traffic:hover .card-features li::before { color: var(--blue); }
.card-social:hover .card-features li::before { color: var(--cyan); }

/* WIDGET 1: Interactive Terminal */
.card-widget {
    margin-top: 32px;
    background-color: #020202;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.widget-terminal {
    height: 180px;
}

.terminal-header {
    height: 32px;
    background-color: #0b0b0c;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal-dots .red { background-color: rgba(255, 95, 86, 0.4); border: 1px solid rgba(255, 95, 86, 0.8); }
.terminal-dots .yellow { background-color: rgba(255, 189, 46, 0.4); border: 1px solid rgba(255, 189, 46, 0.8); }
.terminal-dots .blue-dot { background-color: rgba(0, 229, 255, 0.4); border: 1px solid rgba(0, 229, 255, 0.8); }

.terminal-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.terminal-body {
    padding: 16px;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    flex: 1;
    overflow-y: hidden;
}

.terminal-line {
    margin-bottom: 4px;
}

.cmd-prompt {
    color: var(--cyan);
}

.blink-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent }
    50% { color: var(--text-primary); }
}

/* WIDGET 2: Line Chart */
.widget-chart {
    padding: 16px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.chart-percentage {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan);
    background-color: rgba(0, 229, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.chart-canvas {
    position: relative;
    width: 100%;
}

.svg-chart {
    width: 100%;
    height: auto;
}

.animated-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 4s cubic-bezier(0.4, 0, 0.2, 1) forwards infinite;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-dot {
    opacity: 0.8;
}

.chart-dot-active {
    animation: pulseActiveDot 1.5s infinite alternate;
}

@keyframes pulseActiveDot {
    0% { r: 5; fill: var(--cyan); filter: drop-shadow(0 0 2px var(--cyan)); }
    100% { r: 7; fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* WIDGET 3: Social authority ticker */
.widget-social {
    padding: 24px;
}

.social-post {
    background-color: #0b0b0c;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.card-social:hover .social-post {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.social-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.social-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.social-meta {
    display: flex;
    flex-direction: column;
}

.social-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.social-handle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.social-badge {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    background-color: rgba(0, 114, 245, 0.1);
    color: var(--blue);
    border: 1px solid rgba(0, 114, 245, 0.2);
    padding: 2px 8px;
    border-radius: 100px;
}

.social-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.social-stats {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 12px;
}

.social-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.social-stat:hover {
    color: var(--text-primary);
}

/* -------------------------------------------------------------
 * WORK & CASE STUDIES
 * ------------------------------------------------------------- */
.work-section {
    border-bottom: 1px solid var(--border-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.work-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

a.work-card {
    color: inherit;
    text-decoration: none;
}

.work-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background-color: #0b0b0c;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    opacity: 0.65;
}

.work-img-logo {
    object-fit: contain !important;
    padding: 32px;
    background-color: #0c0e12;
    opacity: 0.8;
}

.work-card:hover .work-img-logo {
    transform: scale(1.02);
    opacity: 1;
}

.work-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 114, 245, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

/* Work card hover */
.work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--bg-card-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.work-card:hover .work-img {
    transform: scale(1.04);
    opacity: 0.95;
}

.work-card:hover .work-overlay-glow {
    opacity: 1;
}

.work-meta {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

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

.tag {
    font-size: 0.7rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.work-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
    padding-right: 24px;
}

.work-card-arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.work-card:hover .work-card-arrow {
    color: var(--text-primary);
    transform: translate(2px, -2px);
}

.work-metrics {
    display: flex;
    gap: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--cyan);
    letter-spacing: -0.02em;
}

.work-card:nth-child(2) .metric-value {
    color: var(--blue);
}

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

/* -------------------------------------------------------------
 * CONTACT SECTION
 * ------------------------------------------------------------- */
.contact-section {
    background-color: #020202;
    border-bottom: 1px solid var(--border-color);
}

/* Bento Grid Contact Section */
.contact-layout-bento {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-ssh {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    opacity: 0.8;
}

.contact-desc-bento {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.contact-bento-grid .contact-card:last-child:nth-child(odd) {
    grid-column: span 2;
}

.contact-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.contact-card.copy-card {
    cursor: pointer;
}

.contact-card.link-card {
    cursor: pointer;
}

.contact-card:hover {
    border-color: rgba(0, 229, 255, 0.25);
    background-color: var(--bg-card-hover);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.02);
    transform: translateY(-2px);
}

/* Even cards hover blue style */
.contact-card:nth-child(even):hover {
    border-color: rgba(0, 114, 245, 0.25);
    box-shadow: 0 8px 25px rgba(0, 114, 245, 0.02);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.contact-card:hover .contact-card-icon {
    color: var(--cyan);
    border-color: rgba(0, 229, 255, 0.3);
    background-color: rgba(0, 229, 255, 0.03);
}

.contact-card:nth-child(even):hover .contact-card-icon {
    color: var(--blue);
    border-color: rgba(0, 114, 245, 0.3);
    background-color: rgba(0, 114, 245, 0.03);
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-family: monospace;
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-card-action {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.contact-card:hover .contact-card-action {
    color: var(--cyan);
}

.contact-card-action.copied {
    color: var(--cyan) !important;
    font-weight: bold;
}

.contact-card-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-card-arrow {
    color: var(--text-primary);
    transform: translate(2px, -2px);
}

/* -------------------------------------------------------------
 * FOOTER
 * ------------------------------------------------------------- */
.footer {
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--border-color);
    background-color: #020202;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 64px;
}

.footer-brand {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Reveal On Scroll Animation class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------
 * RESPONSIVE MEDIA QUERIES
 * ------------------------------------------------------------- */

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

    .hero-headline {
        font-size: 3.5rem;
    }
    
    .bento-grid {
        gap: 16px;
    }
    
    .card-large {
        grid-column: span 12;
    }
    
    .card-medium {
        grid-column: span 12;
    }
    
    .card-social {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        min-height: auto;
    }
    
    .card-social .card-content {
        max-width: 100%;
        margin-bottom: 32px;
    }
    
    .card-social .card-widget {
        max-width: 100%;
        width: 100%;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
    
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .hero-subheadline {
        font-size: 1.1rem;
    }
    
    .hero-subheadline .separator {
        display: block;
        height: 10px;
        visibility: hidden;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
