/* =========================================================
   JA DIGITAL SYSTEMS - DARK PREMIUM INTERFACE (PURE & CLEAN)
========================================================= */

:root {
    --bg-dark: #050507;
    --bg-deep: #07080c;
    --bg-card: #0b0d12;
    --bg-card-2: #101219;
    --surface: #13151d;
    --surface-hover: #181b25;
    --text-main: #f1f2f6;
    --text-soft: #c5c8d2;
    --text-muted: #858a9b;
    --accent: #7c6cff;
    --accent-light: #9b91ff;
    --blue: #5b8cff;
    --blue-light: #86a8ff;
    --white: #ffffff;
    --border: rgba(255,255,255,.075);
    --border-light: rgba(255,255,255,.13);
    --accent-glow: rgba(124,108,255,.18);
    --blue-glow: rgba(91,140,255,.14);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(.23,1,.32,1);
    --container: 1240px;
}

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

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

html {
    scroll-behavior: smooth;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at 50% -20%, rgba(124,108,255,.055), transparent 38%), var(--bg-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

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

/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #252735; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================================
   CONTAINER & LAYOUT CORE
========================================================= */

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: .25;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

#circuitCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
    opacity: .72;
}

.ambient {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -4;
    opacity: .12;
}

.ambient-one { top: -180px; left: -150px; background: var(--accent); }
.ambient-two { right: -180px; bottom: -180px; background: var(--blue); }

.mouse-light {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124,108,255,.075), transparent 70%);
    opacity: 0;
    transition: opacity .5s ease;
}

body:hover .mouse-light { opacity: 1; }

.noise {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* =========================================================
   CURSOR
========================================================= */

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .3s var(--ease), height .3s var(--ease), border .3s ease;
}

body.cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
}

/* =========================================================
   BOOT SCREEN
========================================================= */

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at center, #11121a, #050507 60%);
    display: grid;
    place-items: center;
    transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

.boot-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(180px);
    opacity: .08;
}

.boot-inner {
    width: min(520px, calc(100% - 50px));
    position: relative;
}

.boot-logo {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -.08em;
    margin-bottom: 15px;
}

.boot-logo span { color: var(--accent); }
.boot-title { font-size: .8rem; letter-spacing: .4em; color: var(--text-soft); }
.boot-subtitle { margin-top: 8px; color: var(--text-muted); font-family: var(--font-mono); font-size: .7rem; }
.boot-progress { width: 100%; height: 2px; background: rgba(255,255,255,.08); margin-top: 35px; }

.boot-progress-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    box-shadow: 0 0 20px var(--accent);
}

.boot-percent { margin-top: 12px; font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); }

.boot-log {
    margin-top: 30px;
    display: grid;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .65rem;
    color: #646979;
}

.boot-log div { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; }
.boot-log span { color: var(--accent); }
.boot-log b { color: #8f93a1; font-weight: 500; }
.boot-online { margin-top: 28px; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .25em; color: var(--accent-light); }

/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    border-bottom: 1px solid transparent;
    transition: background .4s ease, border .4s ease, backdrop-filter .4s ease;
}

.header.scrolled {
    background: rgba(5,5,7,.78);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.nav-container {
    width: min(var(--container), calc(100% - 48px));
    height: 82px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; letter-spacing: -.05em; }
.logo span { color: var(--accent); }

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

.nav-link {
    position: relative;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--text-muted);
    transition: color .3s ease;
}

.nav-link small { color: #454855; margin-right: 5px; }

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 5px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}

.nav-link:hover, .nav-link.active { color: var(--text-main); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-social a { font-family: var(--font-mono); font-size: .65rem; color: var(--text-muted); transition: color .3s ease; }
.header-social a:hover { color: var(--accent-light); }

.mobile-menu {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}

.mobile-menu span { display: block; width: 24px; height: 1px; background: white; transition: .3s ease; }
.mobile-menu span:nth-child(2) { width: 16px; }

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

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 80px;
}

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

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .63rem;
    letter-spacing: .1em;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.status-light {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s infinite;
}

.status-separator { color: #3d3f49; }
.hero-code { font-family: var(--font-mono); font-size: .75rem; color: var(--accent-light); margin-bottom: 15px; }

.hero h1 {
    max-width: 820px;
    font-size: clamp(3.4rem, 6vw, 6.5rem);
    line-height: .98;
    letter-spacing: -.075em;
    font-weight: 700;
}

.gradient {
    background: linear-gradient(110deg, #ffffff 0%, #a9a3ff 45%, #6e8fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description { max-width: 620px; margin-top: 28px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 35px; }

.btn {
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .08em;
    transition: transform .4s var(--ease), border .3s ease, background .3s ease;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
    color: white;
    background: linear-gradient(110deg, var(--accent), var(--blue));
    box-shadow: 0 15px 40px rgba(93,83,255,.18);
}
.btn-primary:hover { box-shadow: 0 20px 60px rgba(93,83,255,.3); }

.btn-outline { border: 1px solid var(--border-light); color: var(--text-soft); background: rgba(255,255,255,.015); }
.btn-outline:hover { border-color: var(--accent); color: white; }

.hero-meta { display: flex; gap: 45px; margin-top: 55px; }
.hero-meta div { display: flex; flex-direction: column; gap: 6px; }
.hero-meta span { font-family: var(--font-mono); font-size: .55rem; color: #555968; letter-spacing: .15em; }
.hero-meta strong { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; color: var(--text-soft); }
.system-live { color: var(--accent-light) !important; }

/* =========================================================
   HERO VISUAL & HUD
========================================================= */

.hero-visual { position: relative; min-height: 650px; display: flex; align-items: center; justify-content: center; }

.profile-frame {
    position: relative;
    width: min(430px, 80vw);
    aspect-ratio: .78;
    border: 1px solid var(--border-light);
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 100px rgba(0,0,0,.45), inset 0 0 80px rgba(124,108,255,.035);
}

.frame-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 35px 35px;
    opacity: .45;
}

.profile-image { position: absolute; inset: 28px; overflow: hidden; background: #0b0c10; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.9) contrast(1.12) brightness(.8); transition: transform 1s var(--ease), filter 1s ease; }
.profile-frame:hover .profile-image img { transform: scale(1.04); filter: grayscale(.55) contrast(1.1) brightness(.85); }

.image-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124,108,255,.17), transparent 45%, rgba(91,140,255,.1));
    mix-blend-mode: screen;
}

.scanline {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(155,145,255,.8), transparent);
    box-shadow: 0 0 18px rgba(124,108,255,.8);
    animation: scan 4s linear infinite;
}

.frame-corner { position: absolute; width: 35px; height: 35px; border-color: var(--accent); z-index: 5; }
.fc-1 { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.fc-2 { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.fc-3 { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.fc-4 { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.profile-name { position: absolute; left: 28px; bottom: 32px; z-index: 5; display: flex; flex-direction: column; gap: 5px; }
.profile-role { position: absolute; right: 28px; bottom: 32px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.profile-name span, .profile-role span { font-family: var(--font-mono); font-size: .5rem; color: #737787; letter-spacing: .15em; }
.profile-name strong, .profile-role strong { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; }

.face-data {
    position: absolute;
    z-index: 5;
    font-family: var(--font-mono);
    font-size: .48rem;
    letter-spacing: .08em;
    color: var(--accent-light);
    background: rgba(5,5,7,.7);
    padding: 7px 9px;
    border: 1px solid var(--border);
}

.data-one { top: 80px; left: -35px; }
.data-two { top: 160px; right: -35px; }

.hud { position: absolute; font-family: var(--font-mono); font-size: .55rem; display: flex; flex-direction: column; gap: 4px; color: #5d6272; }
.hud strong { color: var(--text-soft); font-weight: 500; }
.hud-top-left { top: 40px; left: 0; }
.hud-top-right { top: 80px; right: 0; text-align: right; }
.hud-bottom { bottom: 30px; right: 10px; text-align: right; }
.hud-bottom strong { color: var(--accent-light); }

/* =========================================================
   TERMINAL
========================================================= */

.terminal {
    position: absolute;
    width: 300px;
    right: -35px;
    bottom: 70px;
    z-index: 10;
    background: rgba(8,9,13,.88);
    border: 1px solid var(--border-light);
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
    backdrop-filter: blur(18px);
}

.terminal-head {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: .55rem;
    color: #696e7d;
}

.terminal-lights { display: flex; gap: 5px; }
.terminal-lights i { width: 6px; height: 6px; border-radius: 50%; background: #3c3f49; }
.terminal-body { padding: 18px; font-family: var(--font-mono); font-size: .6rem; line-height: 1.8; }
.terminal-body em { color: var(--accent-light); font-style: normal; }
.terminal-body p { color: #a1a5b1; margin-bottom: 7px; }
.terminal-live { color: var(--accent-light); }

.terminal-cursor {
    display: inline-block;
    width: 6px; height: 11px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1s infinite;
}

.scroll-down {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; flex-direction: column; gap: 12px;
    color: #555968; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .15em;
}

.scroll-down i {
    width: 1px; height: 45px;
    background: linear-gradient(var(--accent), transparent);
    animation: scrollLine 2s infinite;
}

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

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

.dark-section {
    background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.025));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head { display: flex; align-items: flex-start; gap: 25px; margin-bottom: 75px; }
.section-index { font-family: var(--font-mono); font-size: .7rem; color: var(--accent-light); padding-top: 8px; }
.section-label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; color: #656a7a; }

.section h2 { margin-top: 12px; font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1; letter-spacing: -.06em; }
.section h2 span { color: var(--accent-light); }

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

.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; }
.about-main { position: relative; }

.big-number {
    font-family: var(--font-mono);
    font-size: 7rem;
    line-height: 1;
    color: rgba(255,255,255,.025);
    position: absolute;
    top: -50px; left: -10px;
    pointer-events: none;
}

.about-highlight { position: relative; max-width: 700px; font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.35; letter-spacing: -.035em; color: var(--text-main); }
.about-main > p:not(.about-highlight) { max-width: 650px; margin-top: 25px; color: var(--text-muted); line-height: 1.8; }

.about-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }

.about-card {
    min-height: 190px;
    padding: 25px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.015);
    display: flex; flex-direction: column; justify-content: space-between;
    transition: transform .5s var(--ease), background .3s ease, border .3s ease;
}

.about-card:hover { transform: translateY(-7px); background: rgba(124,108,255,.035); border-color: rgba(124,108,255,.25); }
.about-card span { font-family: var(--font-mono); color: var(--accent-light); font-size: .6rem; }
.about-card strong { font-size: 1.1rem; letter-spacing: -.02em; }
.about-card p { color: var(--text-muted); font-size: .8rem; }

/* =========================================================
   TECH
========================================================= */

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

.tech-card {
    position: relative;
    min-height: 390px;
    padding: 30px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
    overflow: hidden;
    transition: transform .5s var(--ease), border .4s ease;
}

.tech-card::before {
    content: "";
    position: absolute;
    width: 180px; height: 180px;
    right: -80px; top: -80px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(90px);
    opacity: .06;
}

.tech-card:hover { transform: translateY(-8px); border-color: rgba(124,108,255,.28); }
.tech-icon { font-family: var(--font-mono); font-size: 1.5rem; color: var(--accent-light); margin-bottom: 30px; }
.tech-number { font-family: var(--font-mono); font-size: .55rem; color: #575b6b; }
.tech-card h3 { margin-top: 12px; font-size: 1.15rem; }
.tech-card p { margin-top: 18px; color: var(--text-muted); font-size: .8rem; line-height: 1.7; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-card .tags { position: absolute; left: 30px; bottom: 30px; }
.tags span { padding: 6px 8px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: .5rem; color: #858a9a; background: rgba(255,255,255,.018); }

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

.projects { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }

.project {
    position: relative;
    min-height: 430px;
    padding: 30px;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #0c0e13, #08090c);
    transition: border .4s ease, transform .5s var(--ease);
}

.project:hover { border-color: rgba(124,108,255,.3); }

.project-featured {
    grid-column: span 2;
    min-height: 520px;
    background: radial-gradient(circle at 85% 20%, rgba(124,108,255,.12), transparent 30%), linear-gradient(145deg, #0d0f17, #08090c);
}

.project-bg { position: absolute; right: -25px; bottom: -80px; font-size: 18rem; line-height: 1; font-weight: 800; color: rgba(255,255,255,.018); pointer-events: none; }

.project-glow {
    position: absolute;
    width: 350px; height: 350px;
    right: 0; top: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,108,255,.14), transparent 70%);
    filter: blur(20px); opacity: .6; pointer-events: none;
}

.project-top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-mono); font-size: .55rem; color: #656a79; }
.project-main { position: relative; z-index: 2; max-width: 780px; }
.project-label { font-family: var(--font-mono); font-size: .55rem; color: var(--accent-light); letter-spacing: .15em; }

.project h3 { margin-top: 12px; font-size: clamp(2rem, 4vw, 4.2rem); letter-spacing: -.06em; }
.project h3 span { color: var(--accent-light); }
.project-main p { max-width: 650px; margin-top: 18px; color: var(--text-muted); line-height: 1.8; }

.project-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 25px; }
.project-tech span { padding: 7px 10px; border: 1px solid var(--border); color: #8d92a1; font-family: var(--font-mono); font-size: .52rem; }

.project-bottom { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-live { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .55rem; color: #696e7d; }

.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 12px var(--accent); }

.project-actions { display: flex; gap: 8px; }
.project-actions a, .project-bottom > a {
    display: inline-flex; padding: 10px 13px;
    border: 1px solid var(--border-light);
    font-family: var(--font-mono); font-size: .55rem; color: var(--text-soft);
    transition: background .3s ease, border .3s ease, color .3s ease;
}
.project-actions a:hover, .project-bottom > a:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* =========================================================
   TIMELINE
========================================================= */

.timeline { position: relative; max-width: 900px; margin-left: 80px; }

.timeline::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(var(--accent), rgba(255,255,255,.05), transparent);
}

.timeline-item { position: relative; padding: 0 0 80px 45px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-node {
    position: absolute; left: -4px; top: 2px;
    width: 9px; height: 9px;
    border-radius: 50%; background: var(--bg-dark);
    border: 1px solid var(--accent); box-shadow: 0 0 18px rgba(124,108,255,.5);
}

.timeline-item > span { font-family: var(--font-mono); font-size: .58rem; color: var(--accent-light); }
.timeline-item h3 { margin-top: 10px; font-size: 1.5rem; }
.timeline-item p { max-width: 600px; margin-top: 10px; color: var(--text-muted); line-height: 1.8; }

/* =========================================================
   CONTACT & FOOTER
========================================================= */

.contact-section { padding-bottom: 180px; }

.contact-box {
    position: relative;
    padding: 90px 70px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: radial-gradient(circle at 70% 30%, rgba(124,108,255,.1), transparent 40%), #0a0b10;
}

.contact-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 45px 45px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.contact-box > *:not(.contact-grid) { position: relative; z-index: 2; }
.contact-box h2 { max-width: 900px; margin-top: 18px; font-size: clamp(3rem, 6vw, 6rem); line-height: .98; letter-spacing: -.07em; }
.contact-box h2 span { color: var(--accent-light); }
.contact-box p { max-width: 600px; margin-top: 25px; color: var(--text-muted); line-height: 1.8; }
.contact-actions { display: flex; gap: 10px; margin-top: 35px; }

footer { border-top: 1px solid var(--border); padding: 35px 0; background: #050507; }

.footer-inner { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 40px; }
.footer-logo { font-family: var(--font-mono); font-weight: 700; }
.footer-logo::first-letter { color: var(--accent-light); }
.footer-inner p { margin-top: 5px; color: #555967; font-family: var(--font-mono); font-size: .5rem; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-family: var(--font-mono); font-size: .55rem; color: #767b8b; transition: color .3s ease; }
.footer-social a:hover { color: var(--accent-light); }
.footer-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .5rem; color: #626777; }
.footer-status span { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 10px var(--accent); }
.footer-copy { font-family: var(--font-mono); font-size: .5rem; color: #505463; }

/* =========================================================
   COMMAND CENTER
========================================================= */

.command-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: grid; place-items: center; padding: 20px;
    background: rgba(3,3,5,.75); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.command-overlay.active { opacity: 1; visibility: visible; }

.command-box {
    width: min(650px, 100%);
    border: 1px solid var(--border-light);
    background: rgba(10,11,16,.95);
    box-shadow: 0 40px 120px rgba(0,0,0,.6);
}

.command-head {
    height: 55px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 18px; border-bottom: 1px solid var(--border);
    font-family: var(--font-mono); font-size: .6rem; color: #777c8c;
}
.command-head button { color: var(--accent-light); font-family: var(--font-mono); font-size: .55rem; }

.command-input { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--border); }
.command-input > span { color: var(--accent-light); font-family: var(--font-mono); }
.command-input input { flex: 1; border: 0; outline: 0; background: transparent; color: white; font-family: var(--font-mono); font-size: .8rem; }
.command-input input::placeholder { color: #4e5260; }

.command-options { padding: 10px; display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; }
.command-options button {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    text-align: left; font-family: var(--font-mono); font-size: .6rem; color: #8b8f9d;
    transition: background .3s ease, color .3s ease;
}
.command-options button span { color: var(--accent-light); }
.command-options button:hover { background: rgba(124,108,255,.08); color: white; }

.command-footer { padding: 13px 18px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: .5rem; color: #555968; }
.command-footer span { float: right; }

/* =========================================================
   REVEAL ANIMATION & KEYFRAMES
========================================================= */

.reveal { opacity: 0; transform: translateY(35px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes pulse {
    0%, 100% { opacity: .5; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

@keyframes scrollLine {
    0% { transform: scaleY(.2); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(.2); transform-origin: bottom; }
}

/* =========================================================
   RESPONSIVE & PERFORMANCE OPTIMIZATION
========================================================= */

@media (max-width: 1100px) {
    .nav { gap: 0; }
    .nav-link { padding-inline: 8px; }
    .header-social { display: none; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { max-width: 800px; }
    .hero-visual { min-height: 600px; }
    .tech-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 800px) {
    .container, .nav-container { width: min(100% - 30px, var(--container)); }
    
    .nav {
        position: fixed; top: 82px; left: 15px; right: 15px;
        padding: 12px; display: flex; flex-direction: column; align-items: stretch;
        background: rgba(8,9,13,.96); border: 1px solid var(--border); backdrop-filter: blur(20px);
        opacity: 0; visibility: hidden; transform: translateY(-15px);
        transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
    }
    
    .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-link { padding: 15px; }
    .mobile-menu { display: flex; }
    
    .mobile-menu.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .mobile-menu.active span:nth-child(2) { opacity: 0; }
    .mobile-menu.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    
    .hero { padding-top: 130px; }
    .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
    .hero-meta { gap: 20px; flex-wrap: wrap; }
    .hero-visual { min-height: 580px; }
    .terminal { right: 0; bottom: 30px; width: 270px; }
    .data-one { left: -10px; }
    .data-two { right: -10px; }
    .about-layout { grid-template-columns: 1fr; gap: 60px; }
    .projects, .tech-grid { grid-template-columns: 1fr; }
    .project-featured { grid-column: span 1; }
    .timeline { margin-left: 20px; }
    .contact-box { padding: 60px 30px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .section { padding: 100px 0; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; }
    .hero-meta { display: grid; grid-template-columns: repeat(2,1fr); }
    .profile-frame { width: 300px; }
    .terminal { width: 245px; right: -5px; bottom: 10px; }
    .hud, .face-data { display: none; }
    .about-cards { grid-template-columns: 1fr; }
    .project { min-height: 470px; }
    .project-bottom, .project-actions, .contact-actions, .command-options, .footer-inner { flex-direction: column; }
    .project-actions a { justify-content: center; }
    .footer-inner { gap: 18px; }
    .footer-status { order: 3; }
}

@media (max-width: 768px) {
    /* Performance Boost mobile: desativa elementos pesados */
    #circuitCanvas, .mouse-light, .cursor-dot, .cursor-ring, .noise, .ambient {
        display: none !important;
    }

    .header, .command-box, .terminal {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background-color: rgba(5, 5, 7, 0.95) !important;
    }

    .project-glow {
        animation: none !important;
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}