:root {
  --color_accent:       #8b2222;
  --color_accent_dim:   rgba(139, 34, 34, 0.15);
  --color_bg:           #1a2022;
  --color_text:         #c4cdd2;
  --color_text_muted:   rgba(180, 192, 198, 0.55);
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--color_bg);
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* ─── Hero ─── */

div.rectangle {
  background: url(../img/cover_overlay.png) no-repeat center/100% 100%,
              url(../img/cover.png) no-repeat center/cover;
  min-height: 330px;
  padding-bottom: 28px;
  text-align: center;
}

img.image_photo {
  height: 88px;
  width: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: block;
  margin: 30px auto 18px;
}

div.rectangle h1 {
  color: #e2e8ec;
  margin: 0 0 12px;
  font-size: 36px;
  letter-spacing: 5px;
  font-weight: 300;
  font-family: 'Montserrat', sans-serif;
}

p.hero-subtitle {
  color: var(--color_text);
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  letter-spacing: 0.6px;
  margin: 0 auto 8px;
  max-width: 92%;
}

p.hero-desc {
  color: var(--color_text_muted);
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  letter-spacing: 0.3px;
  line-height: 1.7;
  margin: 0 auto 24px;
  max-width: 92%;
}

div.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

a.button_contact {
  border: 1px solid rgba(200, 196, 196, 0.35);
  background-color: rgba(133, 133, 133, 0.12);
  padding: 8px 22px;
  color: rgba(190, 190, 190, 0.85);
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

a.button_contact:hover {
  border-color: var(--color_accent);
  background-color: var(--color_accent_dim);
  color: #e0a0a0;
}

a.button_projects {
  border: 1px solid rgba(100, 130, 160, 0.35);
  background-color: rgba(100, 130, 160, 0.08);
  padding: 8px 22px;
  color: rgba(160, 190, 215, 0.75);
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

a.button_projects:hover {
  border-color: rgba(100, 130, 160, 0.7);
  background-color: rgba(100, 130, 160, 0.18);
  color: #b0c8dc;
}

/* ─── Particle animation strip ─── */

div#canvas {
  width: 100%;
  max-width: 100%;
  height: 320px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

/* Fade edges — particles emerge from center and dissolve at top/bottom */
div#canvas::before,
div#canvas::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 1;
  pointer-events: none;
}
div#canvas::before {
  top: 0;
  background: linear-gradient(to bottom, #1a2022 0%, rgba(26,32,34,0.85) 50%, transparent 100%);
}
div#canvas::after {
  bottom: 0;
  background: linear-gradient(to top, #1d2527 0%, rgba(29,37,39,0.85) 50%, transparent 100%);
}

/* animation.js creates its own canvas via renderer.domElement — placeholder unused */
canvas#webgl {
  display: none;
}

/* Glass overlay — sits below the fade gradients (z-index 0 < 1) so it dissolves at edges */
div.glass {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 5%;
  width: 290px;
  max-width: 86%;
  background: rgba(16, 22, 24, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 18px 20px 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}

.glass-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(185, 105, 105, 0.8);
  font-weight: 500;
  margin: 0 0 10px;
}

div.text_block {
  border-left: 2px solid rgba(139, 34, 34, 0.55);
  padding-left: 12px;
}

div.text_block p {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: rgba(188, 198, 204, 0.82);
  margin: 0;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.2px;
  overflow: auto;
}

/* ─── About Section ─── */

.about-section {
  background-color: #1d2527;
  padding: 52px 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
  max-width: 680px;
  margin: 0 auto;
}

.section-title {
  color: #d8e0e5;
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 18px;
  font-family: 'Montserrat', sans-serif;
}

.section-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color_accent);
  margin-top: 8px;
}

.about-text {
  color: rgba(185, 196, 202, 0.7);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 300;
  margin: 0 0 28px;
  font-family: 'Roboto', sans-serif;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(175, 186, 195, 0.6);
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 2px;
  letter-spacing: 0.6px;
  font-family: 'Montserrat', sans-serif;
}

/* ─── Footer Icons Bar ─── */

.footer-icons-bar {
  background-color: #161c1e;
  padding: 15px 0 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

div.icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin: 0;
}

div.icons a {
  color: rgba(150, 162, 170, 0.4);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

div.icons a:hover {
  color: rgba(200, 212, 218, 0.75);
}

/* ─── Footer Copyright ─── */

.footer-copyright footer {
  background: #161c1e;
  padding-bottom: 12px;
}

#textFoot {
  background-color: #161c1e;
  color: rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

/* ─── Sidenav ─── */

.sidenav {
  width: 220px;
  background-color: #1d2527 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.sidenav-name {
  padding: 24px 16px 16px;
  pointer-events: none;
}

.sidenav-name span {
  color: rgba(200, 210, 215, 0.4);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.sidenav li a {
  color: var(--color_text) !important;
  font-size: 13px !important;
  letter-spacing: 0.8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  padding: 0 16px;
}

.sidenav li a:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}

.sidenav .divider {
  background-color: rgba(255, 255, 255, 0.06) !important;
  margin: 0 !important;
  height: 1px;
}
