/* 
   ROHAN WASON - CYBERPUNK PREMIUM THEME 
   v4.0 
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* -- PALETTE -- */
    --bg-dark: #050507;
    --bg-panel: #0a0c10;

    --c-neon-green: #00ff9d;
    --c-neon-blue: #00f0ff;
    --c-neon-purple: #bc13fe;
    --c-white: #ffffff;

    --text-main: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.35);

    /* -- UI -- */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 255, 255, 0.15);

    --glass: rgba(10, 12, 16, 0.6);
    --glass-heavy: rgba(5, 7, 10, 0.85);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* -- FONTS -- */
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-heading);
    color: var(--text-main);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--c-neon-green);
    color: #000;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* UTILS */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.mono {
    font-family: var(--font-mono);
}

.text-muted {
    color: var(--text-muted);
}

.gradient-text {
    background: linear-gradient(135deg, var(--c-neon-green), var(--c-neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* BACKGROUND FX */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* HEADER */
header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.dock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--glass-heavy);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.dock a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.dock a:hover,
.dock a.active {
    color: var(--c-white);
    background: rgba(255, 255, 255, 0.08);
}

.dock .cta {
    background: var(--c-white);
    color: #000;
    font-weight: 600;
    margin-left: 8px;
}

.dock .cta:hover {
    background: var(--c-neon-green);
    box-shadow: 0 0 15px var(--c-neon-green);
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

h1.hero-title {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

p.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-family: var(--font-mono);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #fff, #ddd);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--c-neon-green);
    color: var(--c-neon-green);
    background: rgba(0, 255, 157, 0.05);
}

/* TERMINAL COMPONENT */
.terminal-wrapper {
    margin-top: 60px;
    perspective: 1000px;
}

.terminal {
    background: rgba(10, 12, 16, 0.9);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
    text-align: left;
    transform: rotateX(2deg);
    transition: transform 0.4s ease;
}

.terminal:hover {
    transform: rotateX(0deg) scale(1.02);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f57;
}

.yellow {
    background: #febc2e;
}

.green {
    background: #28c840;
}

.terminal-body {
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.prompt {
    color: var(--c-neon-green);
    margin-right: 8px;
}

.cmd {
    color: var(--c-neon-blue);
}

#type-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--c-neon-green);
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* SECTIONS */
section {
    padding: 100px 0;
}

.section-head {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

h2.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARDS */
.card {
    background: var(--glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid transparent;
}

.card:hover .tag {
    border-color: var(--border-light);
    color: var(--c-white);
}

/* Project Card Specific */
.project-card {
    min-height: 240px;
}

.project-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.mt-32 {
    margin-top: 32px;
}

.block-center {
    padding: 48px;
}

.card-contact h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.card-contact p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.terminal-title {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.5;
}

.terminal-output {
    opacity: 0.7;
}

.section-label {
    margin-bottom: 10px;
}

.section-label-purple {
    color: var(--c-neon-purple);
}

.section-label-green {
    color: var(--c-neon-green);
}

.section-label-blue {
    color: var(--c-neon-blue);
}

.stack-item {
    font-size: 18px;
    font-weight: 600;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 80px;
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
}

footer .highlight {
    color: var(--c-neon-green);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1.hero-title {
        font-size: 42px;
    }

    .dock {
        bottom: 24px;
        top: auto;
    }

    /* move nav to bottom on mobile */
    header {
        top: auto;
        bottom: 24px;
    }
}