@charset "utf-8";

@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Roboto');

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --bg-light: #f7f6f2;
  --bg-dark: #171c20;
  --text-light: #4f5b62;
  --text-dark: #e5eceb;
  --primary: #27343a;
  --accent: #4f8f89;
  --accent-dark: #376d68;
  --surface: #fffefa;
  --surface-muted: #f2f3ef;
  --border-light: #dfe4e1;
  --control-bg: #eeefeb;
  --control-border: #d5dbd8;
  --dark-page: #22282c;
  --dark-sidebar: #20272b;
  --dark-surface: #293236;
  --dark-surface-raised: #303a3e;
  --dark-border: #3d4a4e;
  --dark-text: #d7e0df;
  --dark-text-muted: #aebcbb;
}

body {
  height: 100%;
  font-family: 'Quicksand', sans-serif;
  color: var(--text-light);
  box-sizing: border-box;
  font-size: 14px;
  overflow: hidden;
  background-color: var(--bg-light);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: var(--dark-page);
  color: var(--dark-text);
}

/* Controls */
.toggle-btn,
.language-toggle {
  cursor: pointer;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  background: var(--control-bg);
  color: var(--primary);
  font-weight: 600;
  border: 1px solid var(--control-border);
  border-radius: 7px;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.toggle-btn:hover,
.language-toggle:hover {
  background: var(--surface);
  border-color: #aebbb7;
  transform: translateY(-1px);
}

body.dark-mode .toggle-btn,
body.dark-mode .language-toggle {
  color: var(--dark-text);
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

body.dark-mode .toggle-btn:hover,
body.dark-mode .language-toggle:hover {
  background: var(--dark-surface-raised);
  border-color: #56676b;
}

.toggle-btn i.fa-sun-o {
  color: var(--accent-dark);
}

.toggle-btn i.fa-moon-o {
  color: var(--accent);
}

.language-toggle i {
  color: var(--accent-dark);
}

body.dark-mode .language-toggle i {
  color: var(--accent);
}

ul,
li,
ol {
  padding: 0;
  margin: 0;
}

li {
  list-style: none;
}

a,
img {
  border: 0;
  outline: none;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

button {
  font-family: 'Muli', sans-serif;
}

button:focus {
  outline: 0;
}

a {
  color: inherit;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

p {
  margin-bottom: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 400;
  margin: 0 0 30px;
}

/* Scrollbars */
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #777;
}

/* Utilities */
.p-30 {
  padding: 30px;
}

/* Layout */
.wraper {
  width: 100%;
  height: 100%;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: row;
}

.left-content {
  width: 300px;
  gap: 20px;
  overflow-y: auto;
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(79, 143, 137, 0.08), transparent 28%),
    var(--bg-light);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

body.dark-mode .left-content {
  background:
    radial-gradient(circle at top left, rgba(139, 192, 186, 0.08), transparent 28%),
    var(--dark-sidebar);
  border-color: var(--dark-border);
}

.main-content {
  flex: 1;
  overflow-y: auto;
  margin-left: 10px;
  background: #fff;
  border-left: 1px solid rgba(221, 221, 221, 0.38);
}

body.dark-mode .main-content {
  background: var(--dark-page);
  border-color: var(--dark-border);
}

/* Sidebar Header */
.logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 6px 10px;
  margin-right: auto;
  cursor: pointer;
}

body.dark-mode .menu-toggle {
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.logo a {
  position: relative;
  overflow: hidden;
  color: #f5f8f7;
  text-align: center;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 20px 12px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 28px;
  font-weight: 500;
  border-radius: 14px;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.logo a::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -48px;
  width: 110px;
  height: 110px;
  border: 18px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

body.dark-mode .logo a {
  background: var(--dark-surface);
  color: var(--dark-text);
}

/* Sidebar Navigation */
.nav {
  flex: 1;
  margin: 20px 0;
}

.nav ul {
  display: grid;
  gap: 8px;
}

.nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  color: #617077;
  border: 1px solid transparent;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.nav ul li a i {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent-dark);
  background: #e4efed;
  border-radius: 8px;
  font-size: 13px;
}

.nav ul li a:hover {
  color: var(--accent-dark);
  background: rgba(79, 143, 137, 0.07);
  border-color: rgba(79, 143, 137, 0.16);
  transform: translateX(3px);
}

body.dark-mode .nav ul li a:hover {
  color: #add2ce;
  background: rgba(79, 143, 137, 0.1);
  border-color: rgba(139, 192, 186, 0.18);
}

body.dark-mode .nav ul li a {
  color: var(--dark-text-muted);
}

body.dark-mode .nav ul li a i {
  color: #a4cfca;
  background: rgba(79, 143, 137, 0.16);
}

#Sidebar a.active {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border-light);
  box-shadow: 0 8px 20px rgba(39, 52, 58, 0.07);
  font-weight: 700;
}

#Sidebar a.active i {
  color: #f5f8f7;
  background: var(--accent);
}

body.dark-mode #Sidebar a.active {
  color: var(--dark-text);
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

body.dark-mode #Sidebar a.active i {
  color: #f5f8f7;
  background: var(--accent);
}

/* Sidebar Footer */
.left-footer {
  color: #718087;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

body.dark-mode .left-footer {
  color: var(--dark-text-muted);
  border-color: var(--dark-border);
}

.social-icons ul,
.copy-rights {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.social-icons ul li {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
}

.social-icons ul li a {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #66757c;
  background: var(--surface-muted);
  border-radius: 8px;
  font-size: 13px;
  transition: color 0.2s, background-color 0.2s, transform 0.2s;
}

.social-icons ul li a:hover {
  color: #f5f8f7;
  background: var(--accent);
  transform: translateY(-3px);
}

.copy-rights {
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

body.dark-mode .social-icons ul li a:hover {
  color: #f5f8f7;
}

body.dark-mode .social-icons ul li a {
  color: var(--dark-text-muted);
  background: var(--dark-surface);
}

/* Typography */
.sm-text {
  letter-spacing: 2.1px;
  font-weight: normal;
  color: #222222;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
}

.name {
  font-size: 34px;
  text-transform: uppercase;
  margin: 15px 0;
  color: #222222;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
}

.role {
  font-size: 18px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #222222;
}

body.dark-mode .sm-text,
body.dark-mode .name,
body.dark-mode .role {
  color: var(--dark-text);
}

.sec-title {
  margin-bottom: 50px;
}

.pg-title {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.8;
  color: #000;
}

body.dark-mode .pg-title {
  color: var(--dark-text);
}

body.dark-mode .pg-sub-title {
  color: #879795;
}

.pg-sub-title {
  margin-bottom: 10px;
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #999999;
  font-weight: 500;
  letter-spacing: 5px;
}

/* Visibility */
.hidden {
  display: none;
  transition: display 3s linear 2s;
}

.show {
  display: block;
  transition: display 3s ease;
}

.mt-70 {
  margin-top: 70px;
}

/* Skills */
#Skills {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 64px);
}

#Skills .sec-title {
  margin-bottom: 36px;
}

#Skills .pg-title {
  font-size: clamp(22px, 2vw, 30px);
}

.skills-intro {
  max-width: 620px;
  margin: 14px 0 0;
  color: #68767b;
  font-size: 15px;
  line-height: 1.7;
}

.skill-groups {
  display: grid;
  gap: 22px;
}

.skill-group {
  position: relative;
  padding: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(39, 52, 58, 0.07);
}

.skill-group::after {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  background: rgba(79, 143, 137, 0.08);
  border-radius: 50%;
}

.skill-group-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.skill-group-heading > i {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #f5f8f7;
  background: var(--accent);
  border-radius: 13px;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(79, 143, 137, 0.2);
}

.skill-group-title {
  margin: 0 0 3px;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.skill-group-description {
  margin: 0;
  color: #78858a;
  font-size: 13px;
}

.skills-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.skill-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 14px;
  color: #526168;
  background: var(--surface-muted);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.skill-card:hover {
  color: var(--primary);
  background: #f8fbf9;
  border-color: #c8dcd8;
  box-shadow: 0 9px 20px rgba(39, 52, 58, 0.09);
  transform: translateY(-3px);
}

.skill-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.skill-icon {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--accent-dark);
  background: #e2eeeb;
  border-radius: 10px;
  font-size: 18px;
}

body.dark-mode .skills-intro,
body.dark-mode .skill-group-description {
  color: var(--dark-text-muted);
}

body.dark-mode .skill-group {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 14px 34px rgba(15, 20, 22, 0.14);
}

body.dark-mode .skill-group::after {
  background: rgba(139, 192, 186, 0.06);
}

body.dark-mode .skill-group-title {
  color: var(--dark-text);
}

body.dark-mode .skill-card {
  color: var(--dark-text-muted);
  background: var(--dark-surface-raised);
}

body.dark-mode .skill-card:hover {
  color: var(--dark-text);
  background: #354247;
  border-color: #52666a;
  box-shadow: 0 9px 20px rgba(15, 20, 22, 0.16);
}

body.dark-mode .skill-icon {
  color: #a4cfca;
  background: rgba(79, 143, 137, 0.18);
}

/* Work Timeline */
#WorkProfile {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 64px);
}

#WorkProfile .sec-title {
  margin-bottom: 38px;
}

#WorkProfile .pg-title {
  font-size: clamp(22px, 2vw, 30px);
}

.work-intro {
  max-width: 650px;
  margin: 14px 0 0;
  color: #68767b;
  font-size: 15px;
  line-height: 1.7;
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  margin: 0;
  padding-left: 42px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  width: 2px;
  background: linear-gradient(var(--accent), #c7d8d5);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  margin: 0 0 9px;
  color: var(--accent-dark);
  background: #e6f0ee;
  border: 1px solid #c9dcd8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.timeline-content {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(39, 52, 58, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-content::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(79, 143, 137, 0.14), transparent 68%);
}

.timeline-content:hover {
  border-color: #c1d7d3;
  box-shadow: 0 16px 34px rgba(39, 52, 58, 0.1);
  transform: translateY(-2px);
}

.timeline-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e7ebe8;
}

.timeline-icon {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #f5f8f7;
  background: var(--accent);
  border-radius: 12px;
  font-size: 17px;
}

.timeline-heading h3,
.timeline-heading h4 {
  margin: 0;
}

.timeline-heading h3 {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.timeline-heading h4 {
  margin-top: 4px;
  color: #6d7a7f;
  font-size: 13px;
  font-weight: 500;
}

.timeline-content ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.timeline-content li {
  position: relative;
  padding-left: 22px;
  color: #59676d;
  font-size: 14px;
  line-height: 1.6;
}

.timeline-content li::before {
  content: '\f00c';
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--accent-dark);
  font-family: FontAwesome;
  font-size: 11px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px #b8d1cd;
}

body.dark-mode .work-intro,
body.dark-mode .timeline-heading h4,
body.dark-mode .timeline-content li {
  color: var(--dark-text-muted);
}

body.dark-mode .timeline::before {
  background: linear-gradient(#74aaa4, var(--dark-border));
}

body.dark-mode .timeline-date {
  color: #add2ce;
  background: rgba(79, 143, 137, 0.16);
  border-color: rgba(139, 192, 186, 0.25);
}

body.dark-mode .timeline-content {
  color: var(--dark-text);
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 12px 28px rgba(15, 20, 22, 0.13);
}

body.dark-mode .timeline-content:hover {
  border-color: #52666a;
  box-shadow: 0 16px 34px rgba(15, 20, 22, 0.18);
}

body.dark-mode .timeline-heading {
  border-color: var(--dark-border);
}

body.dark-mode .timeline-heading h3 {
  color: var(--dark-text);
}

body.dark-mode .timeline-item::before {
  border-color: var(--dark-page);
  box-shadow: 0 0 0 2px #55736f;
}

/* Portfolio */
#Portfolio {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 64px);
}

#Portfolio > .sec-title {
  margin-bottom: 48px;
}

#Portfolio > .sec-title .pg-title {
  font-size: clamp(22px, 2vw, 30px);
}

.portfolio-intro {
  max-width: 680px;
  margin: 14px 0 0;
  color: #68767b;
  font-size: 15px;
  line-height: 1.7;
}

.category {
  position: relative;
}

.category + .category {
  margin-top: 66px;
}

.category > .pg-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

.category > .pg-title::before {
  content: '';
  width: 34px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.category-description {
  margin: 8px 0 22px 46px;
  color: #78858a;
  font-size: 13px;
}

.category .mt-70 {
  margin-top: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.portfolio-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(39, 52, 58, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card > a,
.portfolio-card.fullstack {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card > a {
  padding: 14px;
}

.portfolio-card:hover {
  border-color: #bfd5d1;
  box-shadow: 0 17px 36px rgba(39, 52, 58, 0.11);
  transform: translateY(-4px);
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top;
  background: var(--surface-muted);
  border-radius: 10px;
}

.portfolio-card.fullstack {
  padding: 14px;
}

.portfolio-card.fullstack p {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio-card.fullstack .portfolio-description {
  display: block;
}

.portfolio-card.fullstack .portfolio-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 24px;
  margin-top: auto;
}

.portfolio-card.fullstack .portfolio-action-separator {
  color: #9aa5a8;
}

.portfolio-title {
  margin: 16px 0 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.portfolio-card p {
  margin: 0;
  color: #68767b;
  font-size: 13px;
  line-height: 1.6;
}

.portfolio-card p a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--accent-dark);
  background: #e6f0ee;
  border: 1px solid #c9dcd8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.backend .portfolio-card {
  min-height: 0;
}

.backend .portfolio-card > a {
  position: relative;
  justify-content: flex-start;
  padding: 22px;
}

.backend .portfolio-card > a::before {
  content: '\f121';
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: #f5f8f7;
  background: var(--accent);
  border-radius: 11px;
  font-family: FontAwesome;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(79, 143, 137, 0.18);
}

.backend .portfolio-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.backend .portfolio-card p {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  line-height: 1.7;
}

.backend .portfolio-card > a::after {
  content: attr(data-cta) '  \2192';
  align-self: flex-start;
  padding: 7px 11px;
  margin-top: auto;
  color: var(--accent-dark);
  background: #e6f0ee;
  border: 1px solid #c9dcd8;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

body.dark-mode .portfolio-card {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--dark-border);
  box-shadow: 0 12px 28px rgba(15, 20, 22, 0.13);
}

body.dark-mode .portfolio-card:hover {
  border-color: #52666a;
  box-shadow: 0 17px 36px rgba(15, 20, 22, 0.18);
}

body.dark-mode .portfolio-title,
body.dark-mode .category > .pg-title {
  color: var(--dark-text);
}

body.dark-mode .portfolio-intro,
body.dark-mode .category-description,
body.dark-mode .portfolio-card p {
  color: var(--dark-text-muted);
}

body.dark-mode .portfolio-card p a {
  color: #add2ce;
  background: rgba(79, 143, 137, 0.16);
  border-color: rgba(139, 192, 186, 0.25);
}

body.dark-mode .backend .portfolio-card p {
  border-color: var(--dark-border);
}

body.dark-mode .backend .portfolio-card > a::after {
  color: #add2ce;
  background: rgba(79, 143, 137, 0.16);
  border-color: rgba(139, 192, 186, 0.25);
}

body.dark-mode .fullstack p,
body.dark-mode .backend p,
body.dark-mode .edu-content .edu-major,
body.dark-mode .edu-content .edu-year {
  color: var(--dark-text-muted);
}

.fullstack p,
.backend p {
  font-size: 14px;
  color: #68767b;
}

/* Credentials */
.cert-intro {
  max-width: 680px;
  margin: 4px 0 0;
  color: #68767b;
  font-size: 15px;
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.cert-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(39, 52, 58, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover {
  border-color: #bfd5d1;
  box-shadow: 0 17px 36px rgba(39, 52, 58, 0.11);
  transform: translateY(-4px);
}

.cert-card a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 210px;
  padding: 22px;
  color: inherit;
}

.cert-card a::before {
  content: 'HackerRank';
  order: -1;
  padding: 5px 9px;
  margin-left: auto;
  color: var(--accent-dark);
  background: #e6f0ee;
  border: 1px solid #c9dcd8;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.cert-card a[href*='dicoding.com']::before {
  content: 'Dicoding';
}

.cert-card a::after {
  content: attr(data-cta) '  \2192';
  padding-top: 14px;
  margin-top: auto;
  color: var(--accent-dark);
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cert-card i {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin: 12px 0 18px;
  place-items: center;
  color: #f5f8f7;
  background: var(--accent);
  border-radius: 14px;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(79, 143, 137, 0.2);
}

.cert-card span {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

body.dark-mode .cert-intro {
  color: var(--dark-text-muted);
}

body.dark-mode .cert-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 12px 28px rgba(15, 20, 22, 0.13);
}

body.dark-mode .cert-card:hover {
  border-color: #52666a;
  box-shadow: 0 17px 36px rgba(15, 20, 22, 0.18);
}

body.dark-mode .cert-card span {
  color: var(--dark-text);
}

body.dark-mode .cert-card a::before {
  color: #add2ce;
  background: rgba(79, 143, 137, 0.16);
  border-color: rgba(139, 192, 186, 0.25);
}

body.dark-mode .cert-card a::after {
  color: #add2ce;
  border-color: var(--dark-border);
}

/* Education */
#Education {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 64px);
}

#Education .sec-title {
  margin-bottom: 42px;
}

#Education .pg-title {
  font-size: clamp(22px, 2vw, 30px);
}

.education-intro {
  max-width: 680px;
  margin: 14px 0 0;
  color: #68767b;
  font-size: 15px;
  line-height: 1.7;
}

.education-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.education-section-icon {
  display: inline-grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #f5f8f7;
  background: var(--accent);
  border-radius: 13px;
  font-size: 17px;
}

.education-section-title,
.credentials-title {
  margin: 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.education-section-description {
  margin: 4px 0 0;
  color: #78858a;
  font-size: 13px;
}

.credentials-heading {
  padding-top: 50px;
  margin-top: 50px;
  border-top: 1px solid var(--border-light);
}

.edu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at bottom left, rgba(79, 143, 137, 0.13), transparent 34%),
    var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(39, 52, 58, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.edu-card:hover {
  border-color: #bfd5d1;
  box-shadow: 0 22px 50px rgba(39, 52, 58, 0.12);
  transform: translateY(-3px);
}

.edu-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  place-items: center;
  color: #f5f8f7;
  background: linear-gradient(145deg, var(--accent), #75aaa4);
  border-radius: 28px;
  font-size: 58px;
  box-shadow: 0 16px 30px rgba(79, 143, 137, 0.22);
  transform: rotate(-3deg);
}

.edu-content {
  position: relative;
  z-index: 1;
}

.edu-label {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 14px;
  color: var(--accent-dark);
  background: #e6f0ee;
  border: 1px solid #c9dcd8;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.edu-content .edu-school {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.edu-content .edu-major {
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 600;
}

.edu-description {
  max-width: 680px;
  margin: 20px 0;
  color: #68767b;
  font-size: 15px;
  line-height: 1.75;
}

.edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-year,
.edu-duration {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: #59676d;
  background: var(--surface-muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

body.dark-mode .edu-card {
  background: var(--dark-surface);
  color: var(--dark-text);
  border-color: var(--dark-border);
  box-shadow: 0 18px 44px rgba(15, 20, 22, 0.14);
}

body.dark-mode .edu-card:hover {
  border-color: #52666a;
  box-shadow: 0 22px 50px rgba(15, 20, 22, 0.19);
}

body.dark-mode .edu-icon {
  color: #f1f7f6;
}

body.dark-mode .edu-school {
  color: var(--dark-text);
}

body.dark-mode .education-intro,
body.dark-mode .education-section-description,
body.dark-mode .edu-description,
body.dark-mode .edu-year,
body.dark-mode .edu-duration {
  color: var(--dark-text-muted);
}

body.dark-mode .edu-label {
  color: #add2ce;
  background: rgba(79, 143, 137, 0.16);
  border-color: rgba(139, 192, 186, 0.25);
}

body.dark-mode .edu-content .edu-major {
  color: #a4cfca;
}

body.dark-mode .education-section-title,
body.dark-mode .credentials-title {
  color: var(--dark-text);
}

body.dark-mode .credentials-heading {
  border-color: var(--dark-border);
}

body.dark-mode .edu-year,
body.dark-mode .edu-duration {
  background: var(--dark-surface-raised);
}

/* About */
#About {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 64px);
}

#About .sec-title {
  margin-bottom: 36px;
}

#About .pg-title {
  font-size: clamp(22px, 2vw, 30px);
}

.about-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(24px, 4vw, 52px);
  margin-bottom: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(79, 143, 137, 0.14), transparent 34%),
    linear-gradient(145deg, var(--surface), #f2f5f2);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(39, 52, 58, 0.09);
}

.about-header::after {
  content: '';
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(79, 143, 137, 0.07);
  border-radius: 50%;
}

.user-img {
  position: relative;
  z-index: 1;
}

.user-img::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: linear-gradient(145deg, var(--accent), #79aaa5);
  border-radius: 18px;
}

.user-img img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(55%);
  border: 6px solid var(--surface);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(39, 52, 58, 0.18);
}

body.dark-mode .user-img img {
  filter: grayscale(45%) brightness(0.88);
  border-color: var(--dark-surface-raised);
}

body.dark-mode #About .role {
  color: var(--dark-text);
  background: #35464b;
}

.user-profile {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

#About .sm-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #65747a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

#About .sm-text::before {
  content: '';
  width: 30px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

#About .name {
  max-width: 760px;
  margin: 8px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

#About .role {
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: 22px;
  color: #f5f8f7;
  background: var(--primary);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.8px;
}

#profile-intro {
  max-width: 780px;
  margin: 0;
  color: #56646a;
  font-size: 16px;
  line-height: 1.85;
}

.my-experience {
  margin-top: 28px;
}

.about-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 20px;
}

.about-info-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(39, 52, 58, 0.07);
}

.about-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 26px;
  width: 54px;
  height: 4px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

.custom-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.custom-list li {
  position: relative;
  padding: 13px 14px 13px 46px;
  color: #56646a;
  background: var(--surface-muted);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.custom-list i {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 18px;
  color: var(--accent-dark);
  text-align: center;
}

#About h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
}

#About h4 i {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #f5f8f7;
  background: var(--accent);
  border-radius: 10px;
}

.connect-text {
  position: relative;
  padding: 20px 24px 20px 54px;
  margin: 20px 0 0;
  color: var(--primary);
  background: linear-gradient(135deg, #e3efed, #f5f7f3);
  border: 1px solid #c4d9d5;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.connect-text::before {
  content: '\f1d8';
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--accent-dark);
  font-family: FontAwesome;
}

body.dark-mode #About h4 {
  color: var(--dark-text);
}

body.dark-mode .custom-list i {
  color: #8bc0ba;
}

body.dark-mode .about-header,
body.dark-mode .about-info-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  box-shadow: 0 18px 50px rgba(15, 20, 22, 0.16);
}

body.dark-mode .about-header::after {
  border-color: rgba(139, 192, 186, 0.08);
}

body.dark-mode #About .sm-text,
body.dark-mode #profile-intro,
body.dark-mode .custom-list li {
  color: var(--dark-text-muted);
}

body.dark-mode .custom-list li {
  background: var(--dark-surface-raised);
}

body.dark-mode .connect-text {
  color: var(--dark-text);
  background: rgba(79, 143, 137, 0.16);
  border-color: rgba(139, 192, 186, 0.28);
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
  }

  .about-details-grid {
    grid-template-columns: 1fr;
  }

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

/* Responsive: Mobile */
@media (max-width: 768px) {
  /* Layout */
  body {
    overflow: auto;
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }

  .left-content {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(221, 221, 221, 0.38);
  }

  .logo {
    grid-template-columns: auto auto auto 1fr;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(221, 221, 221, 0.38);
    padding: 10px 16px;
  }

  body.dark-mode .logo {
    background: var(--dark-sidebar);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 6px 8px;
  }

  /* Navigation */
  .nav {
    display: none;
  }

  body.menu-open .nav {
    display: block;
    position: fixed;
    top: var(--mobile-header-h, 64px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(221, 221, 221, 0.38);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 10px 16px;
    margin: 0;
    max-height: calc(100vh - var(--mobile-header-h, 64px) - 70px);
    overflow-y: auto;
  }

  body.dark-mode.menu-open .nav {
    background: var(--dark-sidebar);
  }

  .nav ul {
    gap: 6px;
  }

  .nav ul li a {
    justify-content: flex-start;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
  }

  .social-icons ul,
  .copy-rights {
    justify-content: center;
  }

  .main-content {
    margin-left: 0;
    border-left: none;
    background: #fff;
  }

  .user-profile {
    padding-left: 0;
  }

  .about-header {
    gap: 18px;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  /* Content */
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  #Portfolio {
    padding: 24px 20px;
  }

  #Portfolio .portfolio-intro {
    margin-right: auto;
    margin-left: auto;
  }

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

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

  .edu-card {
    flex-direction: column;
    align-items: flex-start;
  }

  #Education {
    padding: 24px 20px;
  }

  #Education .education-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .education-section-heading {
    text-align: left;
  }

  .edu-card {
    align-items: center;
    text-align: center;
  }

  .edu-icon {
    flex-basis: 120px;
    width: 120px;
    height: 120px;
    font-size: 46px;
  }

  .edu-meta {
    justify-content: center;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item::before {
    left: -28px;
  }

  #WorkProfile {
    padding: 24px 20px;
  }

  #WorkProfile .work-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .timeline-content {
    padding: 20px;
  }

  /* Header Controls */
  .sec-title {
    text-align: center;
    margin-bottom: 40px;
  }

  .pg-title {
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1.6;
  }

  .pg-sub-title {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .logo a {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    font-size: 16px;
    padding: 6px 10px;
    letter-spacing: 2px;
    line-height: 1.2;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    box-shadow: inset 0 -2px 0 var(--accent);
  }

  .toggle-btn {
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .language-toggle {
    padding: 6px 10px;
    font-size: 14px;
    line-height: 1;
  }

  .toggle-btn i {
    font-size: 14px;
  }

  /* About */
  #About {
    padding: 24px 20px;
  }

  #Skills {
    padding: 24px 20px;
  }

  #Skills .skills-intro {
    margin-right: auto;
    margin-left: auto;
  }

  .skill-group {
    padding: 22px;
    text-align: left;
  }

  .user-img {
    width: min(100%, 320px);
    margin: 0 auto 18px;
  }

  .user-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .user-profile {
    text-align: center;
  }

  #About .sm-text {
    justify-content: center;
  }

  #About .name {
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(30px, 8vw, 42px);
  }

  #About .role {
    font-size: 12px;
  }

  #profile-intro {
    margin: 0 auto;
    text-align: left;
  }

  .about-info-card {
    padding: 22px;
  }

  .connect-text {
    padding-right: 20px;
  }

  /* Fixed Header and Footer Offsets */
  .main-content,
  .left-content {
    padding-top: var(--mobile-header-h, 64px);
  }

  .left-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--bg-light);
    padding: 8px 0;
    border-top: 1px solid rgba(221, 221, 221, 0.38);
    z-index: 1000;
  }

  body.dark-mode .left-footer {
    background: var(--dark-sidebar);
    border-color: var(--dark-border);
  }

  .main-content,
  .left-content {
    padding-bottom: 70px;
  }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
  .name {
    font-size: 28px;
  }

  .role {
    font-size: 16px;
  }

  .p-30 {
    padding: 20px;
  }

  .skill-icon {
    font-size: 1.6rem;
  }

  #About {
    padding: 20px 14px;
  }

  #Skills {
    padding: 20px 14px;
  }

  #WorkProfile {
    padding: 20px 14px;
  }

  #Portfolio {
    padding: 20px 14px;
  }

  #Education {
    padding: 20px 14px;
  }

  .education-section-heading {
    align-items: flex-start;
  }

  .credentials-heading {
    padding-top: 36px;
    margin-top: 36px;
  }

  .edu-card {
    gap: 24px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .edu-icon {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    font-size: 38px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-card a {
    min-height: 190px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .category + .category {
    margin-top: 48px;
  }

  .category-description {
    margin-left: 0;
  }

  .portfolio-card img {
    height: 190px;
  }

  .timeline {
    gap: 16px;
    padding-left: 24px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item::before {
    left: -23px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }

  .timeline-content {
    padding: 18px 14px;
  }

  .timeline-heading {
    align-items: flex-start;
  }

  .timeline-heading h3 {
    font-size: 16px;
  }

  .skill-group {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .skill-group-heading {
    align-items: flex-start;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-header {
    padding: 18px;
    border-radius: 18px;
  }

  .user-img {
    width: calc(100% - 14px);
  }

  .user-img::before {
    inset: 10px -10px -10px 10px;
  }

  .about-info-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .custom-list li {
    padding: 12px 12px 12px 42px;
  }

  .custom-list i {
    top: 15px;
    left: 14px;
  }

  .connect-text {
    padding: 18px 16px 18px 46px;
  }

  .connect-text::before {
    top: 20px;
    left: 18px;
  }

  .logo a {
    font-size: 14px;
    padding: 5px 8px;
    letter-spacing: 1px;
  }

  .toggle-btn {
    font-size: 12px;
    padding: 5px 8px;
  }

  .language-toggle {
    font-size: 12px;
    padding: 5px 8px;
  }

  .menu-toggle {
    font-size: 16px;
    padding: 5px 8px;
  }
}
