/* =========================
RESET & GLOBAL
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  }

:root {
--bg: #09090b;
--surface: #111113;
--surface2: #18181b;
--text: #f5f5f5;
--muted: #a1a1aa;
--line: rgba(255, 255, 255, 0.09);
--accent: #8b5cf6;
--accent2: #6366f1;
--green: #22c55e;
--max: 1250px;
--shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
--bg: #f7f7f8;
--surface: #ffffff;
--surface2: #f0f0f3;
--text: #17171a;
--muted: #62626b;
--line: rgba(0, 0, 0, 0.09);
--shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
}

body {
font-family: "Outfit", sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
transition: 0.3s;
}

a {
color: inherit;
text-decoration: none;
}

button {
font: inherit;
}

.wrap {
width: min(calc(100% - 40px), var(--max));
margin: auto;
}

/* =========================
BACKGROUND GLOW
========================= */

.glow {
position: fixed;
width: 520px;
height: 520px;
border-radius: 50%;
background: var(--accent);
filter: blur(150px);
opacity: 0.09;
right: -250px;
top: -220px;
pointer-events: none;
z-index: -1;
}

.glow.two {
left: -280px;
right: auto;
top: 55%;
background: var(--accent2);
}

/* =========================
HEADER / NAVIGATION
========================= */

header {
position: fixed;
inset: 0 0 auto;
z-index: 1000;
background: color-mix(in srgb, var(--bg) 84%, transparent);
backdrop-filter: blur(18px);
border-bottom: 1px solid var(--line);
}

.nav {
height: 76px;
display: flex;
align-items: center;
justify-content: space-between;
}

.logo {
font: 700 1.15rem "Space Mono", monospace;
}

.logo span {
color: var(--accent);
}

.nav-links {
display: flex;
gap: 2rem;
}

.nav-links a {
font-size: 0.9rem;
color: var(--muted);
transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
color: var(--text);
}

.nav-actions {
display: flex;
gap: 0.65rem;
}

.icon-btn {
width: 42px;
height: 42px;
border: 1px solid var(--line);
background: var(--surface);
color: var(--text);
border-radius: 12px;
cursor: pointer;
display: grid;
place-items: center;
transition: 0.25s;
}

.icon-btn:hover {
border-color: var(--accent);
transform: translateY(-2px);
}

.menu-btn {
display: none;
}

/* =========================
MAIN
========================= */

main {
padding-top: 76px;
}

/* =========================
HERO
========================= */

.hero {
min-height: calc(100vh - 76px);
display: grid;
grid-template-columns: 1.15fr 0.85fr;
gap: 5rem;
align-items: center;
padding: 80px 0;
}

.status {
display: inline-flex;
align-items: center;
gap: 0.55rem;
border: 1px solid var(--line);
background: var(--surface);
padding: 0.45rem 0.8rem;
border-radius: 999px;
color: var(--muted);
font-size: 0.78rem;
margin-bottom: 1.5rem;
}

.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
}

.eyebrow,
.kicker {
font: 700 0.72rem "Space Mono", monospace;
color: var(--accent);
letter-spacing: 2px;
text-transform: uppercase;
}

.eyebrow {
margin-bottom: 0.8rem;
}

.hero h1 {
font-size: clamp(3rem, 6vw, 5.8rem);
line-height: 0.98;
letter-spacing: -3px;
}

.hero h1 span {
color: var(--accent);
}

.hero p {
font-size: 1.08rem;
color: var(--muted);
max-width: 650px;
margin: 1.7rem 0 2rem;
}

.actions {
display: flex;
gap: 0.8rem;
flex-wrap: wrap;
}

.btn {
display: inline-flex;
align-items: center;
gap: 0.55rem;
padding: 0.85rem 1.25rem;
border-radius: 12px;
border: 1px solid var(--line);
font-weight: 600;
font-size: 0.9rem;
transition: 0.25s;
}

.btn.primary {
background: var(--text);
color: var(--bg);
border-color: var(--text);
}

.btn:hover {
transform: translateY(-3px);
}

.btn.ghost:hover {
border-color: var(--accent);
}

.tech-row {
display: flex;
gap: 0.55rem;
flex-wrap: wrap;
margin-top: 2rem;
}

.tech,
.tag {
font: 10px "Space Mono", monospace;
color: var(--muted);
border: 1px solid var(--line);
padding: 0.4rem 0.55rem;
border-radius: 7px;
}

/* =========================
CODE CARD
========================= */

.code-card {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 22px;
box-shadow: var(--shadow);
overflow: hidden;
transform: rotate(2deg);
transition: 0.4s;
}

.code-card:hover {
transform: rotate(0) translateY(-8px);
}

.code-head {
height: 48px;
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
gap: 7px;
padding: 0 16px;
}

.circle {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--muted);
opacity: 0.45;
}

.code-title {
margin-left: auto;
font: 11px "Space Mono", monospace;
color: var(--muted);
}

pre {
padding: 28px 24px 34px;
overflow: auto;
font: 13px/1.9 "Space Mono", monospace;
color: #c4b5fd;
}

pre .k {
color: #93c5fd;
}

pre .s {
color: #86efac;
}

pre .n {
color: #f0abfc;
}

pre .c {
color: #71717a;
}

/* =========================
SECTIONS
========================= */

section {
padding: 110px 0;
}

.section-head {
display: flex;
justify-content: space-between;
align-items: end;
gap: 2rem;
margin-bottom: 38px;
}

.section-title {
font-size: clamp(2rem, 4vw, 3.3rem);
line-height: 1.05;
margin-top: 0.5rem;
}

.section-note {
color: var(--muted);
max-width: 440px;
font-size: 0.95rem;
}

/* =========================
ABOUT
========================= */

.panel {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 20px;
padding: 30px;
}

.panel p {
color: var(--muted);
margin-bottom: 1rem;
}

.panel p:last-child {
margin-bottom: 0;
}

.about-grid {
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 14px;
}

.stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
background: var(--line);
border: 1px solid var(--line);
border-radius: 16px;
overflow: hidden;
}

.stat {
background: var(--surface);
padding: 25px;
}

.stat strong {
font-size: 2rem;
display: block;
}

.stat span {
font-size: 0.8rem;
color: var(--muted);
}

/* =========================
SKILLS
========================= */

.skills {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}

.skill {
padding: 20px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 15px;
display: flex;
align-items: center;
gap: 12px;
transition: 0.25s;
}

.skill:hover {
transform: translateY(-4px);
border-color: var(--accent);
}

.skill i {
font-size: 1.15rem;
color: var(--accent);
width: 24px;
text-align: center;
}

.skill span {
font-size: 0.88rem;
}

/* =========================
SERVICES
========================= */

.services {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 14px;
}

.service {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 18px;
padding: 26px;
min-height: 210px;
transition: 0.3s;
}

.service:hover {
transform: translateY(-6px);
border-color: var(--accent);
}

.service-icon {
width: 48px;
height: 48px;
display: grid;
place-items: center;
border-radius: 13px;
background: var(--surface2);
color: var(--accent);
font-size: 1.2rem;
margin-bottom: 30px;
}

.service h3 {
font-size: 1.05rem;
margin-bottom: 0.5rem;
}

.service p {
font-size: 0.86rem;
color: var(--muted);
}

/* =========================
PROJECTS
========================= */

.projects {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
}

.project {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 20px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: 0.3s;
}

.project:hover {
transform: translateY(-7px);
border-color: var(--accent);
}

.project-top {
height: 170px;
background: linear-gradient(135deg, var(--surface2), transparent);
display: grid;
place-items: center;
position: relative;
}

.project-mark {
font: 700 2.3rem "Space Mono", monospace;
color: var(--accent);
}

.project-status {
position: absolute;
top: 14px;
right: 14px;
font-size: 0.68rem;
border: 1px solid var(--line);
background: var(--surface);
padding: 0.3rem 0.55rem;
border-radius: 999px;
color: var(--muted);
}

.project-body {
padding: 24px;
display: flex;
flex-direction: column;
flex: 1;
}

.project h3 {
font-size: 1.2rem;
}

.project p {
color: var(--muted);
font-size: 0.87rem;
margin: 0.7rem 0 1.2rem;
}

.project-tags {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
margin-top: auto;
margin-bottom: 1.1rem;
}

.project-link {
font-size: 0.85rem;
font-weight: 600;
display: inline-flex;
gap: 0.5rem;
align-items: center;
}

.project-link:hover {
color: var(--accent);
}

/* =========================
CONTACT
========================= */

.contact {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 24px;
padding: 55px;
display: grid;
grid-template-columns: 1fr 0.8fr;
gap: 50px;
align-items: center;
}

.contact h2 {
font-size: clamp(2.2rem, 5vw, 4rem);
line-height: 1;
}

.contact p {
color: var(--muted);
margin: 1rem 0 1.5rem;
max-width: 570px;
}

.contact-list {
display: grid;
gap: 12px;
}

.contact-item {
display: flex;
align-items: center;
gap: 13px;
padding: 13px 15px;
background: var(--surface2);
border-radius: 12px;
font-size: 0.88rem;
}

.contact-item i {
width: 20px;
color: var(--accent);
text-align: center;
}

/* =========================
FOOTER
========================= */

footer {
padding: 35px 0 50px;
color: var(--muted);
font-size: 0.78rem;
display: flex;
justify-content: space-between;
gap: 20px;
border-top: 1px solid var(--line);
}

.footer-social {
display: flex;
gap: 15px;
}

.footer-social a:hover {
color: var(--text);
}

/* =========================
REVEAL ANIMATION
========================= */

.reveal {
opacity: 0;
transform: translateY(25px);
transition: 0.7s ease;
}

.reveal.show {
opacity: 1;
transform: none;
}

/* =========================
TABLET
========================= */

@media (max-width: 1000px) {

.hero {
grid-template-columns: 1fr;
gap: 50px;
}

.code-card {
max-width: 650px;
}

.skills {
grid-template-columns: repeat(3, 1fr);
}

.services {
grid-template-columns: repeat(2, 1fr);
}

.projects {
grid-template-columns: 1fr 1fr;
}

.about-grid,
.contact {
grid-template-columns: 1fr;
}
}

/* =========================
MOBILE
========================= */

@media (max-width: 700px) {

.wrap {
width: min(calc(100% - 28px), var(--max));
}

.nav-links {
position: absolute;
top: 76px;
left: 14px;
right: 14px;
display: none;
flex-direction: column;
gap: 0;
padding: 10px;
background: var(--surface);
border: 1px solid var(--line);
border-radius: 15px;
box-shadow: var(--shadow);
}

.nav-links.open {
display: flex;
}

.nav-links a {
padding: 13px;
}

.menu-btn {
display: grid;
}

.hero {
padding: 55px 0;
min-height: auto;
}

.hero h1 {
letter-spacing: -2px;
}

.hero p {
font-size: 1rem;
}

.skills {
grid-template-columns: 1fr 1fr;
}

.projects,
.services {
grid-template-columns: 1fr;
}

.section-head {
display: block;
}

.section-note {
margin-top: 12px;
}

.contact {
padding: 30px;
}

section {
padding: 80px 0;
}

footer {
display: block;
}

.footer-social {
margin-top: 15px;
}
}

/* =========================
SMALL PHONES
========================= */

@media (max-width: 420px) {

.skills {
grid-template-columns: 1fr;
}

.stats {
grid-template-columns: 1fr;
}

.hero h1 {
font-size: 2.8rem;
}

.nav-actions .icon-btn:first-child {
display: none;
}
}

/* =========================
REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

*,
*::before,
*::after {
scroll-behavior: auto !important;
animation: none !important;
transition: none !important;
}
}
