@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Space+Mono:wght@700&display=swap');

/* ─── Design Tokens ────────────────────────────────────────────────────── */
:root {
  /* Base */
  --bg:             #00000a;
  --bg-surface:     #00000a;
  --bg-subtle:      #00000a;

  /* Text */
  --text-primary:   #cdd6f4;
  --text-secondary: #7f849c;
  --text-muted:     #45475a;

  /* Accent */
  --accent:         #8826f9;
  --accent-dim:     rgba(136, 38, 249, 0.12);
  --accent-hover:   #9d3eff;
  /* Structure */
  --border:         rgba(255, 255, 255, 0.06);
  --border-focus:   rgba(136, 38, 249, 0.5);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Typography */
  --font-body: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── Selection ──────────────────────────────────────────────────────────── */
::selection { background: var(--accent-dim); color: var(--text-primary); }

/* ─── Focus ──────────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--border-focus);
}

/* ─── Number input ───────────────────────────────────────────────────────── */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ─── Base ───────────────────────────────────────────────────────────────── */
html {
  background: var(--bg);
}

body {
  user-select: none;
  height: auto;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.color  { color: var(--accent); transition: all 0.15s ease; }
.colors { color: var(--text-primary); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
#header {
  background: transparent;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block;
}

.header-image img { height: 100vh; float: right; }

.header-image {
  float: right;
  background-size: cover;
  background-position: center;
  width: 40%;
  height: 100vh;
}

.header-content {
  height: 100vh;
  width: 100%;
  float: left;
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 1px;
  flex-direction: column;
  font-size: 50px;
  z-index: 1;
}

.header-content-box {
  z-index: 2;
  text-align: center;
  height: auto;
  padding-right: 60px;
  width: auto;
}

.header-content .firstline {
  z-index: 2;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 65px;
  color: var(--text-primary);
}

.header-content .secondline {
  z-index: 2;
  font-size: 20px;
  padding-top: var(--space-5);
  font-weight: 500;
  color: var(--text-secondary);
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
  max-width: 720px;
}

.header-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 10, 0.1);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.header-links a:hover {
  transform: translateY(-1px);
  border-color: var(--border-focus);
  background: rgba(0, 0, 10, 0.8);
  color: var(--accent-hover);
}

/* ─── Slash animation ────────────────────────────────────────────────────── */
.slash { animation: animateslash 0.8s infinite; }

@keyframes animateslash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

@-webkit-keyframes animateslash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── Social links ───────────────────────────────────────────────────────── */
.social-media-links {
  height: 100vh;
  position: absolute;
  z-index: 2;
  padding: var(--space-8);
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.social-media-links a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: var(--space-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 10, 0.0);
  box-shadow: 0 10px 24px rgba(13, 14, 23, 0.22);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.social-media-links a:link,
.social-media-links a:visited,
.social-media-links a:hover,
.social-media-links a:active,
.social-media-links a:focus {
  color: inherit;
  text-decoration: none;
}

.social-media-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 214, 244, 0.28);
  background: rgba(0, 0, 10, 0.8);
  box-shadow: 0 14px 28px rgba(13, 14, 23, 0.3);
}

.social-media {
  color: var(--text-primary);
  font-size: 21px;
  line-height: 1;
  opacity: 1;
  margin: 0;
  transition: all 0.15s ease;
}

.social-media:hover {
  color: #f2f5ff;
}

/* ─── Contact icons ──────────────────────────────────────────────────────── */
.contact {
  display: flex;
  position: absolute;
  width: 10%;
  right: 0;
  top: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 3;
}

.contact a { z-index: 3; }

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: var(--space-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 10, 0.3);
  box-shadow: 0 10px 24px rgba(13, 14, 23, 0.22);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.contact a:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 214, 244, 0.28);
  background: rgba(0, 0, 10, 0.8);
  box-shadow: 0 14px 28px rgba(13, 14, 23, 0.3);
}

.contact .contactpic {
  margin: 0;
  color: var(--text-primary);
  width: 21px;
  height: 21px;
  display: block;
  flex: 0 0 21px;
  opacity: 1;
  transition: all 0.15s ease;
}

.contact .contactpic:hover {
  color: #f2f5ff;
  opacity: 1;
}

/* ─── Terminal ───────────────────────────────────────────────────────────── */
#terminal {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 10;
  display: none;
}

#terminal.is-open { display: block; }

/* ─── Ecosystem ─────────────────────────────────────────────────────────── */
#ecosystem {
  position: relative;
  padding: 0 var(--space-6) var(--space-8);
}

.ecosystem-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: var(--space-7);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-surface);
}

.ecosystem-intro {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.ecosystem-kicker {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ecosystem-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.ecosystem-intro p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 62ch;
}

.ecosystem-menus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.ecosystem-menu {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
}

.ecosystem-menu-head {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.ecosystem-menu-kicker {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ecosystem-menu h3 {
  color: var(--accent);
  font-size: 20px;
}

.ecosystem-menu a {
  display: block;
  padding: 12px 20px;
  border-left: 2px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, border-left-color 0.15s ease, background 0.15s ease;
}

.ecosystem-menu a:hover {
  color: var(--text-primary);
  border-left-color: var(--accent);
  background: rgba(0, 0, 10, 0.8);
}

.terminal-card {
  width: min(520px, 92vw);
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-4) var(--space-5);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: var(--space-3);
  font-size: 13px;
  color: var(--text-secondary);
}

.terminal-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.terminal-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.terminal-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  padding: var(--space-1) var(--space-3);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s ease;
}

.terminal-close:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.terminal-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--space-3);
  min-height: 120px;
  max-height: 240px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.6;
  font-family: var(--font-mono);
}

.terminal-line {
  margin-bottom: var(--space-1);
  word-break: break-word;
  color: var(--text-primary);
}

.terminal-prompt {
  color: var(--accent);
  margin-right: var(--space-2);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 13px;
  font-family: var(--font-mono);
}

.terminal-input-line input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  font-size: 13px;
  font-family: var(--font-mono);
}

/* ─── Tools section ──────────────────────────────────────────────────────── */
#tools {
  background: transparent;
  display: none;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.tools-header {
  width: 100%;
  text-align: center;
  font-size: 42px;
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: var(--space-3);
  padding-bottom: var(--space-6);
  padding-top: var(--space-8);
  font-weight: 700;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  padding: var(--space-5);
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.tool-icon {
  padding: var(--space-6);
  text-align: center;
  background: var(--bg-subtle);
}

.tool-icon img { width: 80px; height: 80px; object-fit: contain; }

.tool-info {
  padding: var(--space-5);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tool-info h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-4);
  font-size: 18px;
  font-family: var(--font-body);
}

.tool-info p {
  margin-bottom: var(--space-5);
  color: var(--text-secondary);
  flex-grow: 1;
}

.tool-info .button { margin-top: auto; }

/* ─── About section ──────────────────────────────────────────────────────── */
#about {
  background: transparent;
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

#about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-primary);
  justify-content: center;
  height: auto;
  width: 100%;
  padding: var(--space-6);
}

.about-header {
  width: 100%;
  text-align: center;
  font-size: 42px;
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: var(--space-3);
  padding-bottom: var(--space-6);
  padding-top: var(--space-8);
  font-weight: 700;
}

.about-first-paragraph {
  color: var(--text-primary);
  font-size: 18px;
  font-family: var(--font-body);
  width: 52%;
  max-width: 640px;
  padding: var(--space-6);
  font-weight: 400;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.about-first-paragraph .color { font-size: 40px; }

.about-first-line {
  font-size: 35px;
  opacity: 1;
  margin-bottom: var(--space-3);
  display: block;
}

.about-second-line {
  opacity: 0.8;
  font-size: 18px;
  font-weight: 300;
}

.about-role {
  display: block;
  margin-top: var(--space-2);
  font-size: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-third-line {
  display: block;
  margin-top: var(--space-2);
  font-size: 18px;
  opacity: 0.85;
}

.about-spacer { display: block; height: var(--space-5); }

.about-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: auto;
  padding-left: 50px;
  padding-right: 50px;
  flex-direction: row;
}

.about-img img {
  width: 100%;
  height: 380px;
  padding: var(--space-6);
  border-radius: 40px;
}

.about-img {
  width: 550px;
  height: auto;
  padding: var(--space-6);
  padding-top: var(--space-3);
  border-radius: 40px;
}

#about-content a {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 35px;
  color: var(--accent);
  transition: all 0.15s ease;
}

#about-content a:hover { color: var(--accent-hover); }

.cv { padding-top: var(--space-7); }

.cv a button {
  background: var(--accent);
  border: none;
  padding: var(--space-4) var(--space-6);
  color: var(--text-primary);
  outline: none;
  font-size: 18px;
  font-family: var(--font-body);
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cv a button:hover { background: var(--accent-hover); transform: scale(1.03); }

/* ─── Services section ───────────────────────────────────────────────────── */
#services { position: relative; }

.services-heading {
  width: 100%;
  text-align: center;
  font-size: 42px;
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: var(--space-3);
  padding-bottom: var(--space-6);
  padding-top: var(--space-6);
  font-weight: 700;
}

.services-content {
  height: auto;
  width: 100%;
  overflow: hidden;
  text-align: center;
  padding: 2.5%;
}

.service {
  height: 380px;
  width: 28%;
  margin: 1.5%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: inline-block;
  position: relative;
  text-align: center;
  z-index: 2;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.15s ease;
}

.service:hover { border-color: var(--border-focus); }

.service-img { text-align: center; }

.service-img img {
  display: inline-block;
  z-index: 2;
  position: relative;
  margin: var(--space-5);
  border-radius: 30%;
  padding: var(--space-3);
  background: var(--accent-dim);
  height: 100px;
  transition: all 0.4s ease;
}

.service:hover .service-img img { background: var(--accent); }

.service-description {
  font-family: var(--font-body);
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  z-index: 2;
}

.service-description h2 {
  padding: var(--space-3);
  margin: var(--space-1);
  font-weight: 500;
  font-size: 20px;
  color: var(--text-primary);
}

.service-description p {
  padding: var(--space-3);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ─── Skills section ─────────────────────────────────────────────────────── */
#skills { width: 100%; height: auto; }

.skills-header {
  width: 100%;
  text-align: center;
  font-size: 42px;
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: var(--space-3);
  padding-bottom: var(--space-6);
  padding-top: var(--space-6);
  font-weight: 700;
}

.skills-content {
  height: auto;
  width: 100%;
  margin-top: var(--space-5);
  margin-bottom: var(--space-8);
}

.skill-html {
  height: auto;
  width: 45%;
  position: relative;
  font-family: var(--font-body);
  color: var(--text-primary);
  display: inline-block;
  padding: 1.5%;
}

.skill-text { width: 80%; position: relative; height: 50px; }

.html { display: inline-block; position: absolute; left: 5%; top: 30%; }

.html-prog {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.html-progress,
.js-progress,
.adobe-progress,
.php-progress,
.jquery-progress,
.seo-progress {
  position: absolute;
  top: 10%;
  left: 1%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border-radius: 6px;
  background: var(--accent);
  font-family: var(--font-body);
}

.html-progress   { width: 95%; }
.js-progress     { width: 90%; }
.adobe-progress  { width: 83%; }
.php-progress    { width: 85%; }
.jquery-progress { width: 94%; }
.seo-progress    { width: 84%; }

/* ─── Portfolio section ──────────────────────────────────────────────────── */
.portfolio-header {
  width: 100%;
  text-align: center;
  font-size: 42px;
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: var(--space-3);
  padding-bottom: var(--space-6);
  padding-top: var(--space-8);
  font-weight: 700;
  transition: all 0.15s ease;
}

.header-caption {
  opacity: 0.8;
  display: block;
  font-size: 18px;
  font-family: var(--font-body);
  padding: var(--space-2);
  padding-top: var(--space-4);
  color: var(--text-secondary);
  font-weight: 400;
}

.portfolio {
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 1.5% 2% 40px;
  padding-top: 50px;
}

.portfolio-text {
  color: var(--text-primary);
  width: 40%;
  padding-left: 1%;
  margin: 1%;
  margin-left: -40px;
  margin-top: 160px;
  z-index: 3;
  background: var(--bg);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.portfolio-text h2 {
  font-size: 32px;
  font-family: var(--font-body);
  font-weight: 400;
  padding: var(--space-5);
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.portfolio-text p {
  font-size: 15px;
  opacity: 0.8;
  font-family: var(--font-body);
  font-weight: 300;
  padding: var(--space-5);
  color: var(--text-secondary);
}

.portfolio-text button {
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 400;
  padding: var(--space-3) var(--space-5);
  background: transparent;
  color: var(--accent);
  outline: none;
  margin: var(--space-5);
  border: 1px solid var(--accent);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.15s ease;
}

.portfolio-text button::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 200%;
  transform: rotate(-15deg) translateY(-20px);
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--accent);
  transition: all 0.4s ease;
}

.portfolio-text button:hover { color: var(--text-primary); }
.portfolio-text button:hover::before { width: 120%; }

button:hover .index { position: relative; z-index: 4; }

.button { text-align: center; }

.portfolio-image img { height: 400px; width: 100%; position: relative; }
.portfolio-image { height: 400px; width: 40%; }

#portfolio-content {
  width: 100%;
  display: flex;
  height: auto;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#portfolio {
  display: block;
  height: auto;
  overflow-x: hidden;
  background: transparent;
  width: 100%;
  color: var(--text-primary);
}

/* ─── Blog section ───────────────────────────────────────────────────────── */
.blog-header {
  width: 100%;
  text-align: center;
  font-size: 42px;
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: var(--space-3);
  padding-bottom: var(--space-6);
  padding-top: var(--space-8);
  font-weight: 700;
}

#blog {
  background: transparent;
  display: block;
  color: var(--text-primary);
  width: 100%;
  height: auto;
}

.blog-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.blogs {
  height: 420px;
  width: 40%;
  margin: var(--space-5);
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
}

.blogs:hover { border-color: var(--border-focus); }

.blogs .img {
  height: 80%;
  width: 100%;
  overflow: hidden;
  transition: all 0.65s ease;
  position: relative;
}

.blog-date {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 15px;
  text-align: center;
  font-weight: 400;
  font-family: var(--font-mono);
  padding: var(--space-1);
  transition: all 0.15s ease;
  width: 25%;
  height: auto;
}

.blogs .img img { height: 100%; width: 100%; transition: all 0.65s ease; }

.blog-text {
  height: 80%;
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-surface);
  transition: all 0.5s ease;
}

.blog-text h3 {
  font-size: 22px;
  font-weight: 600;
  height: 20%;
  padding: var(--space-5);
  letter-spacing: 1px;
  color: var(--text-primary);
}

.blog-text p {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 400;
  height: 80%;
  padding: var(--space-6);
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.blogs:hover .img      { transform: translateY(-70%); }
.blogs:hover .blog-text { transform: translateY(-70%); }

.blogs a { text-decoration: none; color: var(--text-primary); }

/* ─── Contact section ────────────────────────────────────────────────────── */
#contact {
  display: block;
  height: auto;
  text-align: center;
  width: 100%;
  background: transparent;
  position: relative;
}

.contact-header {
  width: 100%;
  text-align: center;
  font-size: 42px;
  font-family: var(--font-body);
  color: var(--text-primary);
  padding: var(--space-3);
  padding-bottom: var(--space-6);
  padding-top: var(--space-8);
  font-weight: 700;
}

.contact-header-caption {
  padding: var(--space-3);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 17px;
}

.contact-content {
  width: 90%;
  margin: auto;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.contact-info {
  width: 40%;
  height: 500px;
  background-position: center;
  background-size: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--bg);
  opacity: 0.8;
  pointer-events: none;
}

.contact-form {
  height: 550px;
  padding-right: var(--space-7);
  width: 60%;
  display: flex;
  flex-direction: column;
}

form {
  display: flex;
  flex-direction: column;
  height: auto;
  width: auto;
  align-items: center;
  position: relative;
}

.input-line {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.input-name {
  width: 40%;
  padding: var(--space-3) var(--space-5);
  margin: var(--space-4);
  border-radius: 6px;
  outline: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.15s ease;
}

.input-name:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.form-header {
  font-size: 22px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  padding: var(--space-6);
}

.input-subject {
  width: 84%;
  padding: var(--space-3) var(--space-5);
  margin: var(--space-5);
  border-radius: 6px;
  outline: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.15s ease;
}

.input-subject:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.input-textarea {
  width: 84%;
  padding: var(--space-3) var(--space-5);
  margin: var(--space-4);
  height: 150px;
  border-radius: 6px;
  outline: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: all 0.15s ease;
  resize: vertical;
}

.input-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--border-focus);
}

form button {
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-primary);
  background: var(--accent);
  margin: var(--space-5);
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

form button:hover { background: var(--accent-hover); }

.contact-info-header {
  position: relative;
  z-index: 2;
  font-size: 22px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  padding: var(--space-6);
}

.contect-info-content-line {
  height: auto;
  padding: var(--space-3);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  margin-left: 100px;
}

.contact-info-icon-text {
  color: var(--text-primary);
  padding: var(--space-4);
  font-family: var(--font-body);
}

.contact-info-icon-text h6 { font-size: 14px; opacity: 0.8; }
.contact-info-icon-text p  { font-size: 13px; color: var(--text-secondary); }

.icon { height: 40px; opacity: 0.8; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  width: 100%;
  padding: var(--space-5);
  color: var(--text-secondary);
  display: flex;
  flex-direction: row;
  font-family: var(--font-body);
  align-items: center;
  justify-content: center;
}

.footer .footer-text {
  display: inline;
  font-size: 15px;
  font-weight: 400;
}

/* ─── Color changer ──────────────────────────────────────────────────────── */
.color-changer {
  height: auto;
  width: auto;
  display: flex;
  flex-direction: row;
  position: fixed;
  right: -150px;
  top: 40%;
  z-index: 4;
  transition: all 0.15s ease;
}

.color-changer-active {
  right: 0;
  transition: all 0.15s ease;
}

.color-panel {
  height: 45px;
  cursor: pointer;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-right: none;
}

.color-panel img {
  height: 40px;
  width: 40px;
  padding: var(--space-1);
  animation: rotate 2s linear infinite;
}

.colors ul {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  max-width: 150px;
  text-align: center;
  justify-content: center;
  margin-top: var(--space-3);
}

.colors li {
  height: 30px;
  width: 30px;
  margin: var(--space-1);
  border-radius: 20%;
  position: relative;
  overflow: hidden;
}

.colors li a { position: absolute; top: 0; left: 0; height: 100%; width: 100%; }

/* Color swatches — intentionally hardcoded, these are palette indicators */
.color-red    { background: #d20f39; }
.color-purple { background: #8826f9; }
.color-green  { background: #40a02b; }
.color-blue   { background: #1e66f5; }
.color-malt   { background: #209fb5; }
.color-orange { background: #fe640b; }

.color-selector {
  height: auto;
  width: 150px;
  padding: var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  display: flex;
  color: var(--text-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.color-selector li { list-style: none; }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@-webkit-keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── Responsive: Mobile (≤ 550px) ──────────────────────────────────────── */
@media only screen and (max-width: 550px) {
  #terminal {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
  }

  .header-content {
    height: 100vh;
    width: 100%;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 40px;
  }

  .contact {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    margin-top: var(--space-4);
    flex-direction: row;
  }

  .contact .contactpic { width: 21px; height: 21px; margin: 0; }

  .header-image { float: right; height: auto; width: 0%; }

  .social-media-links {
    width: 100%;
    left: 0;
    bottom: 0;
    position: absolute;
    padding: var(--space-3);
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .header-content-box {
    padding-left: 0;
    z-index: 2;
    text-align: center;
    height: auto;
    padding-right: 0;
    width: auto;
  }

  .header-links {
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: 0 var(--space-3);
  }

  .header-links a {
    min-height: 36px;
    padding: 0 var(--space-3);
    font-size: 12px;
  }

  #ecosystem {
    padding: 0 var(--space-3) var(--space-7);
  }

  .ecosystem-shell {
    padding: var(--space-5);
    border-radius: 18px;
  }

  .ecosystem-menus {
    grid-template-columns: 1fr;
  }

  #about-content { padding: var(--space-6); }

  .about-header {
    color: var(--text-primary);
    font-size: 32px;
    padding: var(--space-3);
    font-weight: 700;
  }

  .about-first-paragraph {
    width: 95%;
    padding: var(--space-3);
    font-size: 16px;
  }

  .about-first-paragraph .color { font-size: 30px; }
  .about-first-line    { font-size: 28px; }
  .about-second-line   { font-size: 15px; }
  .about-role          { font-size: 18px; }
  .about-third-line    { font-size: 16px; line-height: 1.6; }

  .about-main {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
    flex-direction: column-reverse;
  }

  .about-img img { width: 280px; height: 220px; padding: var(--space-1); border-radius: 10%; }
  .about-img { width: 100%; height: 250px; text-align: center; overflow: hidden; border-radius: 10%; }

  .service { height: 320px; width: 90%; margin: 1.5%; }
  .service-img img { margin: var(--space-5); height: 80px; }

  .service:hover .service-img img { background: var(--accent-dim); }

  .skill { width: 80%; }
  .prog  { height: 30px; }

  .skills-content { margin-top: var(--space-5); margin-bottom: var(--space-4); }

  .portfolio {
    flex-direction: column;
    padding: 1.5% 2% 40px;
    padding-top: 50px;
  }

  .portfolio-text {
    width: 90%;
    padding-left: 0;
    margin: 0;
    margin-left: 0;
    margin-top: 0;
    z-index: 1;
    background: var(--bg);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .portfolio-text h2 { font-size: 22px; padding: var(--space-3); }
  .portfolio-text p  { font-size: 15px; padding: var(--space-4); }

  .portfolio-image img { height: 300px; width: 100%; }
  .portfolio-image     { height: 300px; width: 90%; }

  .blogs {
    height: auto;
    width: 90%;
    margin: var(--space-3);
    margin-top: var(--space-5);
    margin-bottom: var(--space-5);
    position: relative;
  }

  .blog-date { font-size: 14px; width: 35%; }

  .blog-text { height: auto; width: 100%; }
  .blog-text h3 { font-size: 20px; height: 15%; padding: var(--space-3); }
  .blog-text p  { font-size: 14px; height: 85%; padding: var(--space-5); }

  .blogs:hover .img       { transform: translateY(0%); }
  .blogs:hover .blog-text { transform: translateY(0%); }

  .contact-content { width: 90%; flex-direction: column; }

  .contact-info { width: 90%; height: 500px; margin-bottom: var(--space-5); }
  .contact-info::before { opacity: 0.7; }

  .contact-form {
    height: auto;
    width: 90%;
    padding-bottom: var(--space-7);
    padding-right: 0;
  }

  .input-line { flex-direction: column; }

  .input-name     { width: 90%; font-size: 15px; }
  .input-subject  { width: 90%; font-size: 15px; }
  .input-textarea { width: 90%; font-size: 15px; }

  .form-header { font-size: 20px; padding: var(--space-5); padding-top: 0; }

  .contact-info-header { font-size: 20px; padding: var(--space-5); }

  .contect-info-content-line { margin-left: 5%; }

  .hire-me-section { display: none; }
}

/* ─── Responsive: Tablet (551px – 1025px) ───────────────────────────────── */
@media all and (max-width: 1025px) and (min-width: 551px) {
  .header-content {
    height: 100vh;
    width: 100%;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 40px;
  }

  .header-image { float: right; height: auto; width: 0%; }

  .social-media-links {
    width: 100%;
    left: 0;
    bottom: 0;
    position: absolute;
    padding: var(--space-3);
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .header-content-box {
    padding-left: 0;
    z-index: 2;
    text-align: center;
    height: auto;
    padding-right: 0;
    width: auto;
  }

  .header-links {
    padding: 0 var(--space-5);
  }

  #ecosystem {
    padding: 0 var(--space-5) var(--space-7);
  }

  .ecosystem-shell {
    padding: var(--space-6);
  }

  .ecosystem-menus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact { display: none; }

  #about-content { padding: var(--space-3); }

  .about-header {
    color: var(--text-primary);
    font-size: 42px;
    padding: var(--space-4);
    font-weight: 700;
  }

  .about-first-paragraph {
    width: 95%;
    padding: 25px;
    font-size: 18px;
  }

  .about-first-paragraph .color { font-size: 35px; }
  .about-first-line   { font-size: 32px; }
  .about-second-line  { font-size: 22px; }
  .about-role         { font-size: 19px; }
  .about-third-line   { font-size: 17px; line-height: 1.6; }

  .about-main {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
    flex-direction: column-reverse;
  }

  .about-img img { width: 100%; height: 380px; padding: var(--space-6); border-radius: 40px; }
  .about-img { width: 550px; height: auto; padding: var(--space-6); padding-top: var(--space-3); border-radius: 40px; }

  .cv a button {
    border: none;
    padding: var(--space-5) var(--space-6);
    color: var(--text-primary);
    background: var(--accent);
    outline: none;
    font-size: 18px;
    font-family: var(--font-body);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .service {
    height: auto;
    width: 45%;
    margin: 2%;
    background: var(--bg-surface);
    display: inline-block;
    position: relative;
    text-align: center;
    z-index: 2;
    border-radius: 6px;
    padding: var(--space-3);
    overflow: hidden;
  }

  .service-description h2 { padding: var(--space-3); font-size: 20px; }
  .service-description p  { padding: var(--space-3); font-size: 14px; }

  .skill { width: 40%; }
  .prog  { height: 35px; }

  .skills-content { margin-top: var(--space-5); margin-bottom: var(--space-4); }

  .portfolio {
    flex-direction: column;
    padding: 1.5% 2% 40px;
    padding-top: 50px;
  }

  .portfolio-text {
    width: 70%;
    padding-left: 0;
    margin: 0;
    margin-left: 0;
    margin-top: 0;
    z-index: 1;
    background: var(--bg);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
  }

  .portfolio-text h2 { font-size: 32px; padding: var(--space-4); }
  .portfolio-text p  { font-size: 18px; padding: var(--space-4); }

  .service:hover .service-img img { background: var(--accent-dim); }

  .portfolio-image img { height: 380px; width: 100%; }
  .portfolio-image     { height: 380px; width: 70%; }

  .blogs {
    height: auto;
    width: 75%;
    margin: var(--space-3);
    margin-top: var(--space-5);
    margin-bottom: var(--space-5);
    position: relative;
  }

  .blogs .img { height: 60%; }

  .blog-date { font-size: 15px; width: 35%; }

  .blog-text { height: auto; padding: var(--space-3); }
  .blog-text h3 { font-size: 24px; height: 15%; padding: var(--space-3); }
  .blog-text p  { font-size: 16px; height: 85%; padding: var(--space-5); }

  .blogs:hover .img       { transform: translateY(0%); }
  .blogs:hover .blog-text { transform: translateY(0%); }

  .contact-content { flex-direction: column; }

  .contact-info { width: 70%; height: 500px; margin-bottom: 50px; }
  .contact-info::before { opacity: 0.7; }

  .contact-form {
    height: auto;
    width: 90%;
    padding-bottom: var(--space-7);
    padding-right: 0;
  }

  .input-line { flex-direction: column; }

  .input-name     { width: 80%; font-size: 16px; }
  .input-subject  { width: 80%; font-size: 16px; }
  .input-textarea { width: 80%; font-size: 16px; }

  .form-header { font-size: 22px; padding: var(--space-5); padding-top: 0; }

  .contact-info-header { font-size: 22px; padding: var(--space-5); }

  .contect-info-content-line { margin-left: 30%; }

  .hire-me-section { display: none; }
}

/* ─── Responsive: Wide (≥ 1441px) ───────────────────────────────────────── */
@media all and (min-width: 1441px) {
  .portfolio-image img { height: 500px; }
  .portfolio-image     { height: 500px; }

  .about-img img { width: 100%; height: 450px; padding: var(--space-6); border-radius: 40px; }
  .about-img     { width: 40%; height: 450px; padding: var(--space-6); border-radius: 40px; }

  .about-first-line   { font-size: 45px; }
  .about-second-line  { font-size: 26px; }

  .cv a button {
    border: none;
    padding: var(--space-6) var(--space-7);
    color: var(--text-primary);
    background: var(--accent);
    outline: none;
    font-size: 24px;
    font-family: var(--font-body);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .service {
    height: 400px;
    width: 28%;
    margin: 1.5%;
    padding: var(--space-3);
  }

  .service-img img { height: 120px; }
  .service-description h2 { font-size: 26px; }
  .service-description p  { font-size: 16px; }

  .blogs {
    height: 420px;
    width: 30%;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 50px;
    overflow: hidden;
  }

  .blog-text h3 { font-size: 24px; }
  .blog-text p  { font-size: 16px; }

  .contact-header { font-size: 42px; padding-top: var(--space-8); }
  .contact-header-caption { font-size: 18px; }

  .contact-content { flex-direction: row; }

  .contact-info { width: 40%; height: 600px; }
  .contact-info::before { opacity: 0.7; }

  .contact-form { height: 600px; width: 60%; }

  .input-line { flex-direction: column; }

  .input-name     { width: 60%; font-size: 17px; }
  .input-subject  { width: 60%; font-size: 17px; }
  .input-textarea { width: 60%; font-size: 17px; }

  .form-header { font-size: 22px; }
}
