/* ==========================================================================
   Simon Gonzalez de Cruz — Creative Technologist Portfolio
   Dark sci-fi terminal aesthetic matching Cerafica brand identity
   ========================================================================== */

/* THEME VARS */
:root {
    /* Cerafica Brand Colors */
    --bg-primary: #0A0A0A;
    --bg-card: #151515;
    --bg-elevated: #1A1A1A;
    --border-subtle: #2A2A2A;
    --border-hover: #3A3A3A;

    /* Accent System */
    --cyan-glow: #1EC3D2;
    --cyan-dim: #0F829B;
    --amber: #FFAA00;
    --nebula-purple: #2A1A3A;
    --nebula-teal: #0A2A2A;

    /* Text */
    --fg-primary: #E8E8E8;
    --fg-secondary: #999;
    --fg-muted: #666;

    /* Semantic Aliases (for portfolio-specific usage) */
    --color-bg: var(--bg-primary);
    --color-bg-alt: var(--bg-card);
    --color-surface: var(--bg-elevated);
    --color-surface-hover: var(--bg-card);
    --color-border: var(--border-subtle);
    --color-border-strong: var(--border-hover);
    --color-text: var(--fg-primary);
    --color-text-muted: var(--fg-secondary);
    --color-text-subtle: var(--fg-muted);
    --color-primary: var(--cyan-glow);
    --color-primary-light: var(--cyan-glow);
    --color-accent: var(--amber);
    --color-accent-light: var(--amber);
    --color-glow: var(--cyan-glow);
    --color-success: #4a7c59;
    --color-warning: #c4933d;
    --color-error: #c45c4a;
    --color-info: #5a8fd4;
    --color-highlight: var(--cyan-glow);

    /* Typography */
    --font-display: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
    --font-body: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
    --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    --space-2xl: 128px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* Shadows - Cool-toned with cyan glow */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7), 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(30, 195, 210, 0.3);
    --shadow-glow-hover: 0 0 40px rgba(30, 195, 210, 0.15);
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

/* Scan line overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(30, 195, 210, 0.02) 2px,
        rgba(30, 195, 210, 0.02) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* Scrollbar - Webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-glow);
}

/* Scrollbar - Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) var(--bg-primary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background-color: transparent;
    transition: background-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fg-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan-glow);
    border-radius: 50%;
    display: inline-block;
    animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--fg-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--duration-fast) var(--ease-out);
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--fg-primary);
}

.nav-link.active {
    color: var(--cyan-glow);
    border-bottom-color: var(--cyan-glow);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-glow);
    animation: status-pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
    text-align: center;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(30, 195, 210, 0.015) 50px,
            rgba(30, 195, 210, 0.015) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(30, 195, 210, 0.015) 50px,
            rgba(30, 195, 210, 0.015) 51px
        ),
        radial-gradient(
            ellipse at 50% 50%,
            rgba(42, 26, 58, 0.25) 0%,
            rgba(10, 42, 42, 0.15) 40%,
            transparent 70%
        );
}

/* HUD corner brackets */
.hero::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-top: 2px solid rgba(30, 195, 210, 0.3);
    border-left: 2px solid rgba(30, 195, 210, 0.3);
    border-bottom: 2px solid rgba(30, 195, 210, 0.3);
    border-right: 2px solid rgba(30, 195, 210, 0.3);
    clip-path: polygon(
        0 0, 30px 0, 30px 2px, 2px 2px, 2px 30px, 0 30px,
        100% 100%, calc(100% - 30px) 100%, calc(100% - 30px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) calc(100% - 30px), 100% calc(100% - 30px)
    );
    z-index: 2;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(10, 10, 18, 0.6) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.nebula-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: nebulaDrift 20s ease-in-out infinite;
}

.nebula-orb-1 {
    width: 700px;
    height: 700px;
    top: -20%;
    left: -15%;
    background: radial-gradient(circle, var(--nebula-teal) 0%, rgba(30, 195, 210, 0.2) 40%, transparent 60%);
    animation-delay: 0s;
}

.nebula-orb-2 {
    width: 500px;
    height: 500px;
    top: 25%;
    right: -10%;
    background: radial-gradient(circle, var(--nebula-purple) 0%, rgba(42, 26, 58, 0.3) 40%, transparent 55%);
    animation-delay: 3s;
}

.nebula-orb-3 {
    width: 600px;
    height: 600px;
    bottom: 15%;
    right: 20%;
    background: radial-gradient(circle, rgba(15, 130, 155, 0.3) 0%, transparent 50%);
    animation-delay: 6s;
}

.nebula-orb-4 {
    width: 400px;
    height: 400px;
    top: 35%;
    left: 40%;
    background: radial-gradient(circle, rgba(30, 195, 210, 0.15) 0%, transparent 45%);
    animation-delay: 9s;
}

@keyframes nebulaDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, 3%) scale(1.05); }
    66% { transform: translate(-3%, -3%) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s var(--ease-out);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cyan-glow);
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 0.5s var(--ease-out) 0.1s both;
}

.tag-line {
    width: 24px;
    height: 1px;
    background: var(--cyan-glow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fg-primary);
}

.title-line {
    display: block;
    animation: titleReveal 0.8s var(--ease-out) both;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

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

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

.hero-description {
    font-size: 1.125rem;
    color: var(--fg-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.7s var(--ease-out) 1s both;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border-radius: 12px;
    background: rgba(30, 195, 210, 0.05);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--cyan-glow);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 24px; opacity: 0.3; }
}

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

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-outline {
    border: 1px solid var(--cyan-glow);
    color: var(--cyan-glow);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--cyan-glow);
    color: var(--bg-primary);
}

.btn-solid {
    background-color: var(--cyan-glow);
    color: var(--bg-primary);
}

.btn-solid:hover {
    background-color: var(--cyan-dim);
}

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

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--fg-primary);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 8rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cyan-glow);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-primary);
}

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

/* ==========================================================================
   PROJECTS
   ========================================================================== */

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    animation: fadeInUp 0.8s var(--ease-out) both;
    position: relative;
}

/* Card HUD corners */
.project::before,
.project::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    z-index: 5;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.project::before {
    top: 0;
    left: 0;
    box-shadow: inset 1px 1px 0 0 rgba(30, 195, 210, 0.3);
    opacity: 0.3;
}

.project::after {
    bottom: 0;
    right: 0;
    box-shadow: inset -1px -1px 0 0 rgba(30, 195, 210, 0.3);
    opacity: 0.3;
}

.project:hover::before,
.project:hover::after {
    opacity: 0.6;
}

.project:nth-child(1) { animation-delay: 0.1s; grid-column: span 2; }
.project:nth-child(2) { animation-delay: 0.2s; }
.project:nth-child(3) { animation-delay: 0.3s; }

.project:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(30, 195, 210, 0.08);
}

.project-visual {
    height: 200px;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.project-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-layer {
    position: absolute;
    inset: 0;
}

.preview-ai {
    background: linear-gradient(135deg, rgba(15, 130, 155, 0.6) 0%, rgba(42, 26, 58, 0.6) 100%);
    opacity: 0.9;
}

.ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    animation: orbFloat 10s ease-in-out infinite;
}

.ai-orb-1 {
    width: 100px;
    height: 100px;
    top: 25%;
    left: 25%;
    background: rgba(30, 195, 210, 0.3);
    animation-delay: 1s;
}

.ai-orb-2 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 25%;
    background: rgba(30, 195, 210, 0.15);
    animation-delay: 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(8px, -8px); }
    66% { transform: translate(-4px, 12px); }
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.preview-icon {
    font-size: 2.5rem;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.preview-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-line {
    width: 120px;
    height: 8px;
    background: rgba(30, 195, 210, 0.2);
    border-radius: 4px;
}

.preview-line-short {
    width: 80px;
}

.preview-glaze {
    background: linear-gradient(135deg, var(--nebula-purple) 0%, var(--nebula-teal) 50%, rgba(15, 130, 155, 0.4) 100%);
}

.glaze-swatch {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    box-shadow:
        inset 0 -10px 30px rgba(0, 0, 0, 0.3),
        inset 0 10px 30px rgba(30, 195, 210, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.4);
    animation: swatchRotate 20s linear infinite;
}

.swatch-layer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.swatch-base {
    background: linear-gradient(135deg, var(--nebula-purple) 0%, var(--nebula-teal) 100%);
}

.swatch-overlay {
    background: radial-gradient(ellipse at 30% 30%, rgba(30, 195, 210, 0.3) 0%, transparent 50%);
}

.swatch-shine {
    background: radial-gradient(ellipse at 70% 70%, rgba(30, 195, 210, 0.4) 0%, transparent 30%);
    animation: shinePulse 3s ease-in-out infinite;
}

@keyframes swatchRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shinePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.preview-reverse {
    background: linear-gradient(135deg, var(--nebula-teal) 0%, var(--cyan-dim) 100%);
}

.re-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 8px;
}

.re-cell {
    width: 30px;
    height: 30px;
    background: rgba(30, 195, 210, 0.15);
    border-radius: var(--radius-sm);
    animation: cellPulse 2s ease-in-out infinite;
}

.re-cell:nth-child(1) { animation-delay: 0s; }
.re-cell:nth-child(2) { animation-delay: 0.2s; }
.re-cell:nth-child(3) { animation-delay: 0.4s; }
.re-cell:nth-child(4) { animation-delay: 0.6s; }

@keyframes cellPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

.re-scan {
    position: absolute;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30, 195, 210, 0.8), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(360deg); opacity: 0; }
}

.project-info {
    padding: 2rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--cyan-glow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    background: rgba(30, 195, 210, 0.1);
    border-radius: var(--radius-sm);
}

.project-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-muted);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fg-primary);
}

.project-description {
    color: var(--fg-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-description strong {
    color: var(--fg-primary);
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--fg-secondary);
}

.metric-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--cyan-glow);
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-stack span {
    padding: 0.375rem 0.75rem;
    background: rgba(30, 195, 210, 0.08);
    color: var(--cyan-glow);
    border: 1px solid rgba(30, 195, 210, 0.15);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.project-stack span:hover {
    border-color: var(--cyan-glow);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fg-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--duration-normal) var(--ease-out);
}

.project-link:hover {
    background: var(--cyan-glow);
    color: var(--bg-primary);
    border-color: var(--cyan-glow);
}

.project-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease-out);
}

.project-link:hover svg {
    transform: translateX(4px);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-section {
    background: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.about-content .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text {
    max-width: 500px;
}

.about-lead {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--fg-primary);
}

.about-text p {
    color: var(--fg-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-text p strong {
    color: var(--fg-primary);
}

.about-text p em {
    font-style: italic;
}

.about-identity {
    margin-top: 2rem;
}

.identity-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--cyan-glow);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    text-align: center;
}

.identity-card h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan-glow);
}

.identity-card p {
    color: var(--fg-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.identity-card span {
    display: block;
    font-size: 0.6875rem;
    color: var(--fg-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.visual-frame {
    position: relative;
    width: 300px;
    height: 300px;
}

.visual-inner {
    position: absolute;
    inset: 0;
}

.visual-orbit {
    position: absolute;
    inset: 0;
    animation: orbitSpin 25s linear infinite;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    opacity: 0.5;
    animation: ringPulse 4s ease-in-out infinite;
}

.orbit-ring-1 {
    inset: 0;
    border-color: var(--cyan-glow);
    animation-delay: 1s;
}

.orbit-ring-2 {
    inset: 10%;
    border-color: var(--nebula-teal);
    animation-delay: 2s;
}

.orbit-ring-3 {
    inset: 20%;
    border-color: var(--nebula-purple);
    animation-delay: 3s;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.02); }
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--cyan-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan-glow);
    box-shadow: var(--shadow-glow);
}

.orbit-node {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    animation: nodeOrbit 18s linear infinite;
}

.orbit-node-1 {
    top: 15px;
    left: 15px;
    animation-delay: 0s;
}

.orbit-node-2 {
    top: 35px;
    right: 60px;
    animation-delay: 4s;
}

.orbit-node-3 {
    bottom: 25px;
    left: 75px;
    animation-delay: 8s;
}

.orbit-node-4 {
    bottom: 50px;
    right: 40px;
    animation-delay: 12s;
}

@keyframes nodeOrbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* ==========================================================================
   STACK SECTION
   ========================================================================== */

.stack-section {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.stack-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.stack-category {
    text-align: center;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.category-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-primary);
}

.stack-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s var(--ease-out);
}

.stack-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.item-name {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--fg-primary);
}

.item-level {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--cyan-glow);
    font-weight: 600;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
    background: var(--bg-card);
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-decoration: none;
    transition: all 0.4s var(--ease-out);
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan-glow);
    box-shadow: 0 8px 32px rgba(30, 195, 210, 0.08);
}

.contact-icon {
    margin-bottom: 1rem;
    color: var(--cyan-glow);
}

.contact-icon svg {
    width: 32px;
    height: 32px;
}

.contact-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fg-primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    color: var(--fg-secondary);
    font-size: 0.8125rem;
    font-family: var(--font-mono);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fg-primary);
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan-glow);
    border-radius: 50%;
    display: inline-block;
    animation: status-pulse 2s ease-in-out infinite;
}

.footer-brand > span:last-child {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--fg-secondary);
}

.footer-tagline {
    color: var(--cyan-dim);
    font-size: 0.8125rem;
    font-family: var(--font-mono);
}

.footer-copy {
    color: var(--fg-muted);
    font-size: 0.6875rem;
    font-family: var(--font-mono);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

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

    .project:nth-child(1) {
        grid-column: span 1;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
        min-height: 300px;
    }

    .visual-frame {
        width: 250px;
        height: 250px;
    }

    .stack-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: 0.03em;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .nav-status {
        display: none;
    }

    .section {
        padding: 5rem 1.5rem;
    }

    .projects {
        gap: 1.5rem;
    }

    .project-visual {
        height: 150px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .about-visual {
        min-height: 250px;
    }

    .visual-frame {
        width: 200px;
        height: 200px;
    }

    .stack-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
