:root {
  --bg: #181a1b;
  --bg-alt: #bfa074;
  --text: #e6e6e6;
  --accent: #bfa074;
  --accent-light: #747882;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background: linear-gradient(120deg, #232526 0%, #181a1b 100%);
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.bg-blob {
  position: fixed;
  top: 55%;
  left: 50%;
  width: 55vw;
  height: 55vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle at 60% 40%, #bfa074 0%, #4e5a7e 80%, transparent 100%);
  filter: blur(60px);
  opacity: 0.48;
  transform: translate(-50%, -50%) scale(1);
  z-index: 0;
  animation: blob-breathe 8s ease-in-out infinite, blob-move 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes blob-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.10); }
}

@keyframes blob-move {
  0%, 100% { top: 55%; left: 50%; }
  20% { top: 53%; left: 53%; }
  40% { top: 57%; left: 47%; }
  60% { top: 59%; left: 51%; }
  80% { top: 51%; left: 49%; }
}

#black-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 2s;
}

body.fade-in #black-overlay {
  opacity: 0;
  transition: opacity 2s;
}

body {
  overflow-y: hidden;
}

body.fade-in {
  overflow-y: auto;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 8rem auto 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1.5rem 0;
  text-align: left;
}

h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.about {
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
  color: var(--text);
  max-width: 100%;
  text-align: left;
  margin-left: 0;
}

.skills-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.skills-list {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.skill {
  margin-bottom: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1), box-shadow 0.18s;
}

.skill:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 6px 24px 0 rgba(191,160,116,0.10);
  background: rgba(191,160,116,0.04);
  border-radius: 8px;
}

.skill-title {
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  transition: color 0.2s;
  user-select: none;
  width: 40%;
  min-width: 170px;
  margin-bottom: 0.5rem;
  text-align: left;
  outline: none;
}

.skill-title.open {
  color: var(--accent);
}

.skill-desc {
  font-size: 1rem;
  color: #bdbdbd;
  margin-top: 0.5rem;
  line-height: 1.6;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.5s;
  will-change: max-height, opacity;
  pointer-events: none;
}

.skill-desc.show {
  max-height: 500px;
  opacity: 1;
  pointer-events: auto;
}

.skill-desc.hide {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.references-title {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--accent);
  width: fit-content;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.references-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.reference-link {
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.08rem;
  padding: 0.12em 0.32em;
  border-radius: 6px;
  transition: 
    color 0.18s cubic-bezier(0.4,0,0.2,1),
    background 0.18s cubic-bezier(0.4,0,0.2,1),
    box-shadow 0.18s cubic-bezier(0.4,0,0.2,1),
    transform 0.18s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 6px 0 rgba(191,160,116,0.06);
  background: rgba(191,160,116,0.04);
  display: inline-block;
  cursor: pointer;
}

.reference-link:hover,
.reference-link:focus {
  color: #fff;
  background: linear-gradient(90deg, var(--accent) 60%, var(--accent-light) 100%);
  box-shadow: 0 2px 16px 0 rgba(191,160,116,0.18);
  text-decoration: none;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

.references-more {
  color: #888;
  font-size: 1rem;
  font-style: italic;
}

.references-coming-soon {
  color: #888;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 24px;
  text-align: left;
}

.contact-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.contact-links a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}

.contact-links a:hover {
  color: #fff;
  text-decoration: none;
  background: none;
}

.contact-links .icon {
  width: 28px;
  height: 28px;
  filter: none;
  transition: filter 0.2s, transform 0.2s;
  margin-right: 0.2rem;
  color: #747882;
}

.contact-links a:hover .icon {
  filter: brightness(2) drop-shadow(0 0 4px #bfa074);
  transform: scale(1.18);
}

.lang-switch {
  position: fixed;
  top: 0;
  right: 0;
  margin: 0.8rem 1.2rem 0 0;
  display: flex;
  gap: 0.5rem;
  z-index: 10000;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
}

.lang-switch button.active,
.lang-switch button:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

footer {
  margin-top: 2.5rem;
  color: #bfa074;
  font-size: 1rem;
  text-align: center;
  padding-bottom: 1.5rem;
  letter-spacing: 0.5px;
  width: 100%;
}
 
@media (max-width: 600px) {
  .container {
    margin-top: 3.5rem;
    padding: 0 0.5rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2, .references-title {
    font-size: 1.2rem;
  }
  .skill-title {
    font-size: 1rem;
    min-width: 120px;
  }
  .contact-links .icon {
    width: 22px;
    height: 22px;
  }
}