/* ═══════════════════════════════════════════
   BrierStudios — Frost Dark Fantasy Nordic Tech
   ═══════════════════════════════════════════ */

:root {
    --void: #060810;
    --void-lighter: #0c1018;
    --void-card: #101620;
    --void-border: #182030;
    --ice: #38bdf8;
    --ice-bright: #7dd3fc;
    --ice-deep: #0284c7;
    --ice-glow: rgba(56, 189, 248, 0.12);
    --ice-glow-strong: rgba(56, 189, 248, 0.25);
    --ice-dim: rgba(56, 189, 248, 0.4);
    --frost: #bae6fd;
    --frost-dim: rgba(186, 230, 253, 0.6);
    --aurora: #818cf8;
    --aurora-dim: rgba(129, 140, 248, 0.4);
    --crystal: #e0f2fe;
    --text: #cbd5e1;
    --text-dim: #64748b;
    --text-bright: #f1f5f9;
    --font-display: 'Cinzel', serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --nav-h: 64px;
    --max-w: 1200px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--void);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ice); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--ice-bright); }
img { max-width: 100%; }

/* ─── Loading Screen ─── */
.loading-screen {
    position: fixed; inset: 0;
    background: var(--void);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.loading-rune {
    font-size: 4rem; color: var(--ice);
    text-shadow: 0 0 30px rgba(56,189,248,0.6), 0 0 60px rgba(56,189,248,0.3);
    animation: rune-pulse 1.5s ease-in-out infinite;
}
.loading-bar {
    width: 120px; height: 2px; margin-top: 24px;
    background: var(--void-border); border-radius: 2px;
    overflow: hidden; position: relative;
}
.loading-bar::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--ice), transparent);
    animation: loading-slide 1.5s ease-in-out infinite;
}
@keyframes rune-pulse { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.1)} }
@keyframes loading-slide { 0%{left:-100%} 100%{left:100%} }

/* ─── Mouse Glow ─── */
.mouse-glow {
    position: fixed; width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.07) 0%, rgba(56,189,248,0.02) 40%, transparent 70%);
    pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%); will-change: left, top;
}

/* ─── Runes Canvas ─── */
#runes-canvas {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* ─── Navbar ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h); z-index: 100;
    transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(6,8,16,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(56,189,248,0.08), 0 4px 20px rgba(0,0,0,0.4);
}
.nav-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
    color: var(--text-bright); text-decoration: none;
}
.nav-logo:hover { color: var(--ice-bright); }
.nav-logo-img {
    width: 36px; height: 36px; border-radius: 4px; object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(56,189,248,0.4));
}
.nav-logo-text .accent { color: var(--ice); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    color: var(--text-dim); font-family: var(--font-mono); font-size: 0.85rem;
    font-weight: 400; letter-spacing: 0.5px; text-transform: uppercase;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--ice); transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ice-bright); }
.nav-links a: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);
    transition: transform 0.3s, opacity 0.3s;
}

/* ─── Aurora Borealis ─── */
.aurora-bg {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    pointer-events: none; opacity: 0.6;
}
.aurora-bg::before, .aurora-bg::after {
    content: ''; position: absolute; 
    width: 200%; height: 200%;
    top: -50%; left: -50%;
}
.aurora-bg::before {
    background: radial-gradient(ellipse at 20% 50%, rgba(56,189,248,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(129,140,248,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 40% 80%, rgba(56,189,248,0.08) 0%, transparent 50%);
    animation: aurora-shift 15s ease-in-out infinite alternate;
    filter: blur(60px);
}
.aurora-bg::after {
    background: radial-gradient(ellipse at 60% 30%, rgba(129,140,248,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 70%, rgba(56,189,248,0.06) 0%, transparent 50%);
    animation: aurora-shift 20s ease-in-out infinite alternate-reverse;
    filter: blur(80px);
}
@keyframes aurora-shift {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    33%  { transform: translate(5%, -3%) rotate(2deg) scale(1.05); }
    66%  { transform: translate(-3%, 5%) rotate(-1deg) scale(0.98); }
    100% { transform: translate(2%, -2%) rotate(1deg) scale(1.02); }
}

/* ─── Stats ─── */
.stats {
    background: var(--void);
    padding: 4rem 0;
}
.stats::before { display: none; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 2rem 1rem;
    border-radius: 12px;
    background: var(--void-card);
    border: 1px solid var(--void-border);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.stat-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,0.03), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.stat-item:hover {
    border-color: var(--ice-dim);
    box-shadow: 0 0 30px var(--ice-glow), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-4px);
}
.stat-item:hover::before { opacity: 1; }
.stat-rune {
    display: block; font-size: 1.5rem; color: var(--ice); 
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(56,189,248,0.5);
}
.stat-number {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900; color: var(--text-bright);
    background: linear-gradient(135deg, var(--ice-bright), var(--frost));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1.2;
}
.stat-label {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-dim); text-transform: uppercase;
    letter-spacing: 2px; margin-top: 0.5rem;
}

/* ─── Hero ─── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 2rem; }
.hero-particles { position: absolute; inset: 0; z-index: 0; }
.rune-circle {
    margin: 0 auto 2rem; width: 180px; height: 180px;
    animation: float 6s ease-in-out infinite;
}
.rune-svg { width: 100%; height: 100%; animation: slow-spin 60s linear infinite; }
.rune-char { font-family: serif; animation: rune-flicker 3s ease-in-out infinite; }
.rune-char:nth-child(odd) { animation-delay: -1.5s; }
.rune-ring { animation: ring-pulse 4s ease-in-out infinite; }
.rune-ring-inner { animation: ring-pulse 3s ease-in-out infinite 1s; }
.rune-ring-inner2 { animation: ring-pulse 2.5s ease-in-out infinite 0.5s; }
.rune-ring-outer { animation: ring-pulse 5s ease-in-out infinite 2s; }
@keyframes slow-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
@keyframes ring-pulse { 0%,100%{opacity:0.2} 50%{opacity:0.5} }
@keyframes rune-flicker {
    0%,100%{opacity:0.6;filter:drop-shadow(0 0 4px rgba(56,189,248,0.4))}
    50%{opacity:1;filter:drop-shadow(0 0 12px rgba(56,189,248,0.8))}
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; color: var(--text-bright);
}
.title-line { display: block; }
.title-line .glow {
    color: var(--frost);
    text-shadow: 0 0 30px rgba(186,230,253,0.3), 0 0 60px rgba(186,230,253,0.1);
}
.hero-title {
    position: relative;
}
.hero-title:hover .title-line .accent {
    animation: glitch-text 0.4s ease-in-out;
}
@keyframes glitch-text {
    0%   { transform: translate(0); }
    10%  { transform: translate(-2px, 1px); filter: hue-rotate(0deg); }
    20%  { transform: translate(2px, -1px); }
    30%  { transform: translate(-1px, 2px); filter: hue-rotate(90deg); }
    40%  { transform: translate(1px, -2px); }
    50%  { transform: translate(0); filter: hue-rotate(180deg); }
    60%  { transform: translate(-2px, 0); }
    70%  { transform: translate(2px, 1px); filter: hue-rotate(270deg); }
    80%  { transform: translate(0, -1px); }
    90%  { transform: translate(1px, 0); filter: hue-rotate(360deg); }
    100% { transform: translate(0); filter: hue-rotate(0deg); }
}
.title-line .accent {
    background: linear-gradient(135deg, var(--ice), var(--aurora));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--text-dim);
    max-width: 600px; margin: 0 auto 2.5rem; font-weight: 300;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; font-family: var(--font-mono); font-size: 0.85rem;
    font-weight: 500; letter-spacing: 0.5px; border-radius: 6px;
    cursor: pointer; transition: all 0.3s var(--ease-out);
    text-decoration: none; position: relative; overflow: hidden;
}
.btn-rune { font-family: serif; font-size: 1.1em; }
.btn-primary {
    background: linear-gradient(135deg, var(--ice-deep), var(--ice));
    color: var(--void); border: none;
    box-shadow: 0 0 20px rgba(56,189,248,0.2), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 40px rgba(56,189,248,0.4), 0 4px 20px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transform: translateX(-100%); transition: transform 0.5s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-secondary {
    background: transparent; color: var(--ice);
    border: 1px solid var(--ice-dim);
}
.btn-secondary:hover {
    border-color: var(--ice); background: var(--ice-glow);
    box-shadow: 0 0 20px rgba(56,189,248,0.15); transform: translateY(-2px);
}
.scroll-indicator {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-rune { font-size: 1.5rem; color: var(--ice); opacity: 0.5; }
.scroll-indicator span {
    font-family: var(--font-mono); font-size: 0.7rem;
    color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase;
}
@keyframes scroll-bounce {
    0%,100%{transform:translateX(-50%) translateY(0);opacity:0.5}
    50%{transform:translateX(-50%) translateY(8px);opacity:1}
}

/* ─── Sections ─── */
section { position: relative; padding: 6rem 0; }
section::before {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--ice-dim), transparent);
}
.section-container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-rune {
    display: block; font-size: 2rem; color: var(--ice);
    text-shadow: 0 0 20px rgba(56,189,248,0.5); margin-bottom: 0.75rem;
    animation: rune-flicker 4s ease-in-out infinite;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700; color: var(--text-bright); margin-bottom: 1rem;
}
.section-title .accent {
    background: linear-gradient(135deg, var(--ice), var(--aurora));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider-rune {
    width: 60px; height: 2px; margin: 1rem auto;
    background: linear-gradient(90deg, transparent, var(--ice), transparent);
    box-shadow: 0 0 10px rgba(56,189,248,0.3);
}
.section-subtitle { color: var(--text-dim); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ─── About ─── */
.about { background: linear-gradient(180deg, var(--void) 0%, var(--void-lighter) 50%, var(--void) 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-lead { font-size: 1.15rem; color: var(--text-bright); margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; color: var(--text); }
.about-text strong { color: var(--ice-bright); }
.about-values { display: flex; flex-direction: column; gap: 1.5rem; }
.value-card {
    background: var(--void-card); border: 1px solid var(--void-border);
    border-radius: 8px; padding: 1.5rem;
    transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
}
.value-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--ice), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.value-card:hover {
    border-color: var(--ice-dim);
    box-shadow: 0 0 30px var(--ice-glow), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-4px);
}
.value-card:hover::before { opacity: 1; }
.value-rune {
    display: block; font-size: 1.5rem; color: var(--ice); margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(56,189,248,0.5);
}
.value-card h3 { font-family: var(--font-display); color: var(--text-bright); font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ─── Projects ─── */
.projects { background: var(--void); }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.project-card {
    background: var(--void-card); border: 1px solid var(--void-border);
    border-radius: 12px; padding: 2rem;
    transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
}
.project-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at var(--mouse-x,50%) var(--mouse-y,50%), var(--ice-glow) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.project-card:hover::after { opacity: 1; }
.project-card:hover {
    border-color: var(--ice-dim);
    box-shadow: 0 0 40px var(--ice-glow), 0 0 80px rgba(56,189,248,0.1), 0 8px 30px rgba(0,0,0,0.4);
    transform: translateY(-4px);
}
/* 3D tilt effect */
.project-card.tilt-active {
    transition: transform 0.1s ease-out, box-shadow 0.3s var(--ease-out), border-color 0.4s;
}
.project-card .tilt-glare {
    position: absolute; inset: 0; border-radius: 12px;
    background: radial-gradient(circle at var(--glare-x,50%) var(--glare-y,50%), rgba(255,255,255,0.08) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 2;
}
.project-card:hover .tilt-glare { opacity: 1; }
.project-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--void-card) 0%, rgba(56,189,248,0.05) 100%);
    border-color: rgba(56,189,248,0.15);
}
.project-rune { font-size: 2rem; color: var(--ice); text-shadow: 0 0 15px rgba(56,189,248,0.5); margin-bottom: 0.5rem; }
.project-badge {
    position: absolute; top: 1rem; right: 1rem;
    font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--ice); background: var(--ice-glow);
    border: 1px solid var(--ice-dim); padding: 4px 12px; border-radius: 4px;
}
.project-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-bright); margin-bottom: 0.25rem; }
.project-tagline { color: var(--ice); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 0.75rem; }
.project-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.project-tech { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.project-tech span {
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--aurora);
    background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.15);
    padding: 3px 10px; border-radius: 3px; letter-spacing: 0.5px;
}
.project-links { display: flex; gap: 1rem; }
.project-link {
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--ice);
    display: flex; align-items: center; gap: 4px; transition: color 0.3s;
}
.project-link:hover { color: var(--ice-bright); }
.project-link.coming-soon { color: var(--text-dim); pointer-events: none; opacity: 0.5; }
.link-icon { font-size: 0.75rem; }

/* ─── Contact ─── */
.contact { background: linear-gradient(180deg, var(--void) 0%, var(--void-lighter) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; align-items: start; }
.rune-divider-vertical {
    width: 1px; background: linear-gradient(180deg, transparent, var(--ice-dim), transparent);
    min-height: 200px; align-self: stretch;
}
.contact-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1rem; border-radius: 8px; transition: all 0.3s; margin-bottom: 1rem;
}
.contact-item:hover { background: var(--ice-glow); }
.contact-rune { font-size: 1.5rem; color: var(--ice); text-shadow: 0 0 10px rgba(56,189,248,0.4); flex-shrink: 0; }
.contact-item h4 { font-family: var(--font-display); color: var(--text-bright); font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-item a { color: var(--ice); font-family: var(--font-mono); font-size: 0.85rem; transition: color 0.3s; }
.contact-item a:hover { color: var(--ice-bright); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label {
    display: block; font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
    width: 100%; background: var(--void); border: 1px solid var(--void-border);
    border-radius: 6px; padding: 12px 16px; color: var(--text-bright);
    font-family: var(--font-body); font-size: 0.9rem;
    transition: all 0.3s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); opacity: 0.5; }
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--ice); box-shadow: 0 0 20px var(--ice-glow-strong), inset 0 0 10px rgba(56,189,248,0.05);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { align-self: flex-start; }

/* ─── Footer ─── */
.footer { padding: 3rem 0; text-align: center; border-top: 1px solid var(--void-border); }
.footer-container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-bottom: 1rem; }
.footer-brand .rune-logo { color: var(--ice); font-size: 1.3rem; text-shadow: 0 0 10px rgba(56,189,248,0.5); }
.footer-brand .accent { color: var(--ice); }
.footer-runes {
    font-size: 0.85rem; color: var(--ice-dim); letter-spacing: 8px;
    margin-bottom: 1rem; animation: rune-shimmer 4s ease-in-out infinite;
}
@keyframes rune-shimmer { 0%,100%{opacity:0.3} 50%{opacity:0.6} }
.footer-copy { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); opacity: 0.5; }

/* ─── Scroll Animations ─── */
.fade-in, .fade-in-left, .fade-in-right {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }
.visible {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
}

/* ─── Navbar Shrink ─── */
.navbar.shrunk { height: 48px; }
.navbar.shrunk .nav-logo { font-size: 1.05rem; }
.navbar.shrunk .nav-logo-img { width: 28px; height: 28px; }
.navbar.shrunk .nav-links a { font-size: 0.75rem; }
.navbar { transition: height 0.35s var(--ease-out), background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s; }
.navbar .nav-logo, .navbar .nav-logo-img, .navbar .nav-links a {
    transition: font-size 0.35s var(--ease-out), width 0.35s var(--ease-out), height 0.35s var(--ease-out);
}

/* ─── Typing Effect ─── */
.typing-cursor {
    display: inline-block; width: 2px; height: 1.1em;
    background: var(--ice); margin-left: 2px; vertical-align: text-bottom;
    animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── Skills Section ─── */
.skills { background: var(--void-lighter); }
.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem; margin-top: 2rem;
}
.skill-rune-card {
    background: var(--void-card); border: 1px solid var(--void-border);
    border-radius: 12px; padding: 1.5rem 1rem; text-align: center;
    transition: all 0.4s var(--ease-out); position: relative; overflow: hidden;
    cursor: default;
}
.skill-rune-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(56,189,248,0.08) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.4s;
}
.skill-rune-card:hover {
    border-color: var(--ice-dim); transform: translateY(-6px) scale(1.03);
    box-shadow: 0 0 30px var(--ice-glow), 0 8px 24px rgba(0,0,0,0.3);
}
.skill-rune-card:hover::before { opacity: 1; }
.skill-rune {
    font-size: 2rem; display: block; margin-bottom: 0.5rem;
    color: var(--ice); text-shadow: 0 0 15px rgba(56,189,248,0.5);
    transition: transform 0.4s var(--ease-spring), text-shadow 0.4s;
}
.skill-rune-card:hover .skill-rune {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 25px rgba(56,189,248,0.8), 0 0 50px rgba(56,189,248,0.3);
}
.skill-name {
    font-family: var(--font-mono); font-size: 0.75rem;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
    transition: color 0.3s;
}
.skill-rune-card:hover .skill-name { color: var(--ice-bright); }
.skill-level {
    width: 100%; height: 2px; background: var(--void-border);
    border-radius: 2px; margin-top: 0.75rem; overflow: hidden;
}
.skill-level-bar {
    height: 100%; border-radius: 2px; width: 0;
    background: linear-gradient(90deg, var(--ice-deep), var(--ice), var(--aurora));
    transition: width 1.5s var(--ease-out);
}
.skill-rune-card.visible .skill-level-bar { width: var(--skill-pct); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .rune-divider-vertical { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0; bottom: 0;
        background: rgba(6,8,16,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1.2rem; }
    .nav-toggle { display: flex; }
    .hero-title { font-size: 2rem; }
    .rune-circle { width: 120px; height: 120px; }
    .project-card { padding: 1.5rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}