/* ========================================
   GKHNMR.NET — Premium Dark Theme
   ======================================== */

/* === CSS Custom Properties === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-card: rgba(15, 15, 30, 0.7);
    --bg-glass: rgba(15, 15, 30, 0.5);
    --text-primary: #e0e0e8;
    --text-secondary: #8888aa;
    --text-dim: #555577;
    --cyan: #00f0ff;
    --cyan-dim: rgba(0, 240, 255, 0.15);
    --purple: #b829dd;
    --purple-dim: rgba(184, 41, 221, 0.15);
    --green: #00ff41;
    --green-dim: rgba(0, 255, 65, 0.15);
    --red: #ff3355;
    --yellow: #ffcc00;
    --gradient-1: linear-gradient(135deg, var(--cyan), var(--purple));
    --gradient-2: linear-gradient(135deg, var(--purple), var(--cyan));
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
    --glow-purple: 0 0 20px rgba(184, 41, 221, 0.3), 0 0 60px rgba(184, 41, 221, 0.1);
    --glow-green: 0 0 20px rgba(0, 255, 65, 0.3), 0 0 60px rgba(0, 255, 65, 0.1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--cyan), var(--purple));
    border-radius: 4px;
}

::selection {
    background: var(--cyan-dim);
    color: var(--cyan);
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--purple);
}

/* === Boot Overlay === */
#boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
    font-family: var(--font-mono);
    overflow: hidden;
    transition: opacity 0.8s ease;
}

#boot-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

#boot-content {
    color: var(--green);
    font-size: 14px;
    line-height: 1.6;
    max-width: 700px;
}

#boot-lines .boot-line {
    opacity: 0;
    animation: bootFadeIn 0.1s forwards;
    white-space: pre;
}

#boot-cursor {
    display: inline-block;
    color: var(--green);
    font-weight: bold;
}

#boot-cursor.blink {
    animation: blink 0.7s step-end infinite;
}

@keyframes bootFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* === Canvases === */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#matrix-canvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#matrix-canvas.active {
    opacity: 1;
}

/* === Navigation === */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
    padding: 0 24px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#main-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan) !important;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    position: relative;
    padding: 4px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--cyan) !important;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-link:hover {
    color: var(--cyan) !important;
}

/* === Hidden Utility === */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* === Hero Section === */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 120px 24px 80px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-dim);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 999px;
    padding: 6px 18px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--green);
    margin-bottom: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-line {
    display: block;
}

.hero-line-1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: 6px;
    line-height: 1.1;
}

.hero-line-1 .glitch-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.hero-line-1 .glitch-text::before,
.hero-line-1 .glitch-text::after {
    -webkit-text-fill-color: initial;
    background: none;
}

.hero-line-2 {
    margin-top: 4px;
}

.hero-sub {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 8px;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--cyan);
    min-height: 30px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.7s both;
}

.hero-tagline::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    color: var(--cyan);
    margin-left: 2px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: var(--glow-cyan);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 1.1s both;
}

/* Buttons */
.btn {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: #000;
    font-weight: 600;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 80px rgba(0, 240, 255, 0.2);
    color: #000;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease 1.3s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* === Sections Common === */
.section {
    padding: 120px 24px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-number {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 1rem;
    opacity: 0.6;
}

.section-desc {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 0.9rem;
}

.section-desc code {
    background: var(--cyan-dim);
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* === Glitch Text === */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text:hover::before {
    animation: glitch-1 0.3s linear;
    color: var(--cyan);
    z-index: -1;
    opacity: 0.8;
}

.glitch-text:hover::after {
    animation: glitch-2 0.3s linear;
    color: var(--purple);
    z-index: -2;
    opacity: 0.8;
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-3px, 2px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(3px, -1px);
    }

    40% {
        clip-path: inset(40% 0 30% 0);
        transform: translate(-2px, 3px);
    }

    60% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(-3px, 1px);
    }

    100% {
        clip-path: inset(30% 0 40% 0);
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(3px, -2px);
    }

    20% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-3px, 1px);
    }

    40% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(2px, -3px);
    }

    60% {
        clip-path: inset(30% 0 40% 0);
        transform: translate(-2px, 2px);
    }

    80% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(3px, -1px);
    }

    100% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(0);
    }
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.about-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--cyan);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* About Terminal */
.about-terminal {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f57;
}

.terminal-dot.yellow {
    background: #febc2e;
}

.terminal-dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 8px;
}

.terminal-code {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.json-key {
    color: var(--cyan);
}

.json-string {
    color: var(--green);
}

.json-number {
    color: var(--yellow);
}

/* === Skills Section === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 28px;
    backdrop-filter: blur(10px);
}

.skill-cat-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--purple);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(184, 41, 221, 0.2);
}

.skill-item {
    margin-bottom: 18px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.skill-info span:first-child {
    color: var(--text-primary);
}

.skill-pct {
    color: var(--cyan);
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--glow-cyan);
    position: relative;
}

.skill-fill.animated {
    width: var(--target-width);
}

/* === Terminal Section === */
.terminal-window {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 240, 255, 0.12);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), var(--glow-cyan);
    max-width: 800px;
    margin: 0 auto;
}

.terminal-body {
    padding: 16px 20px;
    max-height: 350px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.terminal-line {
    margin-bottom: 2px;
}

.terminal-text {
    color: var(--text-primary);
}

.terminal-text.success {
    color: var(--green);
}

.terminal-text.error {
    color: var(--red);
}

.terminal-text.info {
    color: var(--cyan);
}

.terminal-text.dim {
    color: var(--text-dim);
}

.terminal-text.warning {
    color: var(--yellow);
}

.terminal-text.purple {
    color: var(--purple);
}

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.3);
}

.terminal-prompt {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--green);
    white-space: nowrap;
}

.terminal-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    caret-color: var(--cyan);
}

.terminal-input::placeholder {
    color: var(--text-dim);
}

/* === Cipher Section === */
.cipher-container {
    max-width: 700px;
    margin: 0 auto;
}

.cipher-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cipher-card:hover {
    border-color: rgba(184, 41, 221, 0.2);
}

.cipher-header {
    text-align: center;
    margin-bottom: 32px;
}

.cipher-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
}

.cipher-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--purple);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cipher-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 500px;
    margin: 0 auto;
}

.cipher-display {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(184, 41, 221, 0.2);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 28px;
    text-align: center;
}

.cipher-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.cipher-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--purple);
    letter-spacing: 3px;
    word-break: break-all;
    text-shadow: var(--glow-purple);
    line-height: 1.6;
}

.cipher-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.cipher-input-area {
    margin-bottom: 24px;
}

.cipher-input-area label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.cipher-input-row {
    display: flex;
    gap: 12px;
}

.cipher-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.cipher-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 20px rgba(184, 41, 221, 0.2);
}

.btn-cipher {
    flex-shrink: 0;
}

.cipher-result {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-height: 24px;
}

.cipher-result.success {
    color: var(--green);
}

.cipher-result.error {
    color: var(--red);
}

.cipher-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-2);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* === Projects Section === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    perspective: 1000px;
}

.project-card-inner {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-inner {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-6px) rotateX(2deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), var(--glow-cyan);
}

.project-card:hover .project-card-inner::before {
    opacity: 1;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.project-card-inner h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.project-card-inner p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--cyan-dim);
    color: var(--cyan);
    border-radius: 4px;
    letter-spacing: 1px;
}

.project-links {
    display: flex;
    justify-content: flex-end;
}

.project-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.project-status.live {
    color: var(--green);
}

.project-status.dev {
    color: var(--yellow);
}

/* === Contact Section === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-method:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.form-group input:focus~.input-glow,
.form-group textarea:focus~.input-glow {
    transform: scaleX(1);
}

.btn-submit {
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.btn-submit .btn-text {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-submit .btn-glitch {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.btn-submit:hover .btn-text {
    opacity: 0;
    transform: translateY(-20px);
}

.btn-submit:hover .btn-glitch {
    opacity: 1;
    transform: translateY(0);
}

/* === Footer === */
#footer {
    padding: 60px 24px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-ascii {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: pre;
    margin-bottom: 16px;
    line-height: 1.4;
}

.footer-hint {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    opacity: 0.5;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
    cursor: default;
}

.footer-hint:hover {
    opacity: 1;
    color: var(--green);
}

.footer-links {
    margin-top: 16px;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim) !important;
}

.footer-link:hover {
    color: var(--cyan) !important;
}

/* === Modal === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 48px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: var(--glow-cyan);
    animation: modalIn 0.5s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.modal-secret {
    font-family: var(--font-mono);
    color: var(--yellow) !important;
    font-size: 0.85rem !important;
    margin-bottom: 24px !important;
}

/* === Reveal Animations === */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* === Keyframe Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 65, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === Custom Cursor === */
#custom-cursor {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    z-index: 10002;
    pointer-events: none;
}

.cursor-dot.hover {
    width: 12px;
    height: 12px;
    background: var(--cyan);
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 0.3s;
    z-index: 10001;
    pointer-events: none;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--purple);
}

.cursor-ring.clicking {
    width: 30px;
    height: 30px;
    border-color: var(--green);
}

/* === Cursor Sparkle Trail === */
#cursor-trail-container {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle-fade 0.8s ease-out forwards;
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }

    100% {
        opacity: 0;
        transform: scale(0) translate(var(--sx), var(--sy));
    }
}

/* === Gradient Blobs === */
.gradient-blobs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple), transparent 70%);
    top: 40%;
    right: -15%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green), transparent 70%);
    bottom: -5%;
    left: 30%;
    animation-delay: -13s;
    animation-duration: 22s;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -60px) scale(1.1);
    }

    50% {
        transform: translate(-40px, 80px) scale(0.9);
    }

    75% {
        transform: translate(60px, 40px) scale(1.05);
    }
}

/* === 3D Sphere Canvas === */
#sphere-canvas {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.25;
}

/* === Noise Overlay === */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* === Floating Code === */
#floating-code {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-snippet {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(0, 240, 255, 0.06);
    white-space: nowrap;
    animation: float-code linear infinite;
    pointer-events: none;
}

@keyframes float-code {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(5deg);
        opacity: 0;
    }
}

/* === Holographic Card Effect === */
.holographic {
    position: relative;
    overflow: hidden;
}

.holographic::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(var(--holo-angle, 135deg),
            transparent 20%,
            rgba(0, 240, 255, 0.1) 30%,
            rgba(184, 41, 221, 0.1) 40%,
            rgba(0, 255, 65, 0.1) 50%,
            rgba(255, 204, 0, 0.1) 60%,
            rgba(0, 240, 255, 0.1) 70%,
            transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.holographic:hover::before {
    opacity: 1;
    animation: holo-shift 3s linear infinite;
}

.holographic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--holo-angle, 135deg),
            transparent 40%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.holographic:hover::after {
    opacity: 1;
}

@keyframes holo-shift {
    0% {
        --holo-angle: 0deg;
        filter: hue-rotate(0deg);
    }

    100% {
        --holo-angle: 360deg;
        filter: hue-rotate(360deg);
    }
}

/* === Text Scramble Effect === */
.scramble-text {
    display: inline-block;
    min-width: 1ch;
}

.scramble-char {
    display: inline-block;
    transition: color 0.1s;
}

.scramble-char.scrambling {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
}

/* === Magnetic Effect === */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

/* === Scroll Color Transition === */
body {
    transition: --bg-shift 0.5s ease;
}

body[data-section="hero"] .gradient-blobs .blob-1 {
    opacity: 0.18;
}

body[data-section="about"] .gradient-blobs .blob-2 {
    opacity: 0.2;
}

body[data-section="skills"] .gradient-blobs .blob-3 {
    opacity: 0.2;
}

body[data-section="terminal"] .gradient-blobs .blob-1 {
    opacity: 0.12;
}

body[data-section="cipher"] .gradient-blobs .blob-2 {
    opacity: 0.22;
}

body[data-section="projects"] .gradient-blobs .blob-3 {
    opacity: 0.18;
}

/* === Enhanced Section Reveal === */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* === Keyframe Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 65, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === Enhanced Project Cards === */
.project-card {
    perspective: 800px;
}

.project-card-inner {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 240, 255, 0.15);
}

/* === Enhanced Terminal Glow === */
.terminal-window {
    transition: box-shadow 0.4s ease;
}

.terminal-window:focus-within {
    box-shadow: 0 8px 60px rgba(0, 240, 255, 0.2),
        0 0 0 1px rgba(0, 240, 255, 0.3),
        0 0 100px rgba(0, 240, 255, 0.05);
}

/* === About Card Hover Ripple === */
.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    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;
}

.about-card:hover::before {
    opacity: 1;
    animation: border-glow 2s linear infinite;
}

@keyframes border-glow {
    0% {
        background: linear-gradient(0deg, transparent 30%, var(--cyan) 50%, transparent 70%);
    }

    25% {
        background: linear-gradient(90deg, transparent 30%, var(--purple) 50%, transparent 70%);
    }

    50% {
        background: linear-gradient(180deg, transparent 30%, var(--cyan) 50%, transparent 70%);
    }

    75% {
        background: linear-gradient(270deg, transparent 30%, var(--purple) 50%, transparent 70%);
    }

    100% {
        background: linear-gradient(360deg, transparent 30%, var(--cyan) 50%, transparent 70%);
    }
}

/* === Responsive === */
@media (max-width: 1024px) {

    .about-grid,
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .about-grid,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 80px 16px;
    }

    .cipher-input-row {
        flex-direction: column;
    }

    .terminal-body {
        max-height: 250px;
        font-size: 0.75rem;
    }

    .terminal-prompt {
        font-size: 0.75rem;
    }

    .terminal-input {
        font-size: 0.75rem;
    }

    #custom-cursor,
    .cursor-dot,
    .cursor-ring,
    #cursor-trail-container {
        display: none !important;
    }

    body {
        cursor: auto;
    }

    #boot-overlay {
        padding: 20px;
    }

    #boot-content {
        font-size: 11px;
    }

    .footer-ascii {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .hero-line-1 {
        letter-spacing: 3px;
    }

    .hero-sub {
        letter-spacing: 4px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* === Hide default cursor on desktop === */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
}