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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #050805;
  color: #f5fff5;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 255, 106, 0.16), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(0, 255, 106, 0.10), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(0, 255, 106, 0.08), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 8%;
  background: rgba(5, 8, 5, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 106, 0.15);
}

.logo {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 255, 106, 0.20);
  border-radius: 14px;
  background: rgba(0, 255, 106, 0.06);
  box-shadow: 0 0 22px rgba(0, 255, 106, 0.08);
}

.logo span,
.green {
  color: #00ff6a;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 255, 106, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(0, 255, 106, 0.04);
}

.nav a {
  position: relative;
  color: #d7f7dd;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.3s ease;
}

.nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 106, 0.22), rgba(0, 255, 106, 0.06));
  border: 1px solid rgba(0, 255, 106, 0.35);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.92);
  transition: 0.3s ease;
}

.nav a:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(0, 255, 106, 0.45);
}

.nav a:hover::before,
.nav a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.nav a:focus-visible {
  outline: none;
  color: #ffffff;
}

.nav a {
  z-index: 1;
}

.nav a::before {
  z-index: -1;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #00ff6a;
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  padding: 120px 8% 70px;
}

.tag {
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #00ff6a;
  background: rgba(0, 255, 106, 0.08);
  border: 1px solid rgba(0, 255, 106, 0.25);
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 1;
  margin-bottom: 15px;
}

.hero h2 {
  min-height: 42px;
  color: #c8ffd7;
  font-size: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.animated-typing {
  display: inline-block;
  position: relative;
  padding-right: 12px;
}

.animated-typing::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  width: 3px;
  height: 80%;
  background: #00ff6a;
  box-shadow: 0 0 12px rgba(0, 255, 106, 0.7);
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.description {
  max-width: 620px;
  color: #c7d3c7;
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  border: 1px solid #00ff6a;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn.primary {
  background: #00ff6a;
  color: #031006;
  box-shadow: 0 0 24px rgba(0, 255, 106, 0.25);
}

.btn.secondary {
  background: transparent;
  color: #00ff6a;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(0, 255, 106, 0.35);
}

.photo-card {
  position: relative;
  max-width: 430px;
  justify-self: center;
}

.photo-card img {
  width: 100%;
  display: block;
  border-radius: 30px;
  filter: saturate(1.05) contrast(1.05);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.65);
  position: relative;
  z-index: 2;
}

.photo-border {
  position: absolute;
  inset: -16px;
  border: 2px solid #00ff6a;
  border-radius: 38px;
  transform: rotate(-4deg);
  box-shadow: 0 0 45px rgba(0, 255, 106, 0.25);
}

section {
  padding: 90px 8%;
}

.section-title {
  margin-bottom: 35px;
  text-align: center;
}

.section-title p {
  color: #00ff6a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-title h2,
.contact h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-top: 8px;
}

.about-card,
.skill-card,
.contact {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(0, 255, 106, 0.16);
  border-radius: 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.about-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  color: #c7d3c7;
  line-height: 1.9;
  font-size: 1.08rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.skill-card {
  padding: 30px;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 106, 0.55);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0 12px;
  margin-bottom: 20px;
  background: rgba(0, 255, 106, 0.1);
  color: #00ff6a;
  border-radius: 16px;
  font-weight: 800;
}

.skill-card h3 {
  margin-bottom: 16px;
  color: #ffffff;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  padding: 10px 0;
  color: #c7d3c7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.skill-card li::before {
  content: "▸";
  color: #00ff6a;
  margin-right: 8px;
}

.contact {
  margin: 80px 8%;
  padding: 55px 30px;
  text-align: center;
}

.contact p {
  color: #c7d3c7;
  line-height: 1.8;
  margin: 16px auto 25px;
  max-width: 650px;
}

.quote {
  color: #00ff6a !important;
  font-weight: 700;
  min-height: 30px;
}

footer {
  padding: 28px 8%;
  text-align: center;
  color: #91a291;
  border-top: 1px solid rgba(0, 255, 106, 0.15);
}

@media (max-width: 850px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 82px;
    right: 8%;
    width: 235px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    background: rgba(7, 16, 7, 0.96);
    border: 1px solid rgba(0, 255, 106, 0.28);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  }

  .nav a {
    text-align: center;
    padding: 12px 16px;
  }

  .nav.active {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 130px;
  }

  .tag,
  .buttons {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

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

.theme-toggle {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 106, 0.55);
  border-radius: 50%;
  background: rgba(5, 8, 5, 0.88);
  color: #00ff6a;
  font-size: 1.65rem;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0, 255, 106, 0.28);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 42px rgba(0, 255, 106, 0.42);
}

body,
.header,
.logo,
.nav,
.nav a,
.tag,
.hero h2,
.description,
.about-card,
.skill-card,
.contact,
.contact p,
footer,
.theme-toggle {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme {
  background: #f7fff9;
  color: #053b16;
}

body.light-theme .background-glow {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 180, 75, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(0, 180, 75, 0.11), transparent 28%),
    radial-gradient(circle at 50% 90%, rgba(0, 180, 75, 0.10), transparent 35%);
}

body.light-theme .header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(0, 153, 64, 0.22);
}

body.light-theme .logo {
  color: #053b16;
  background: rgba(0, 180, 75, 0.08);
  border-color: rgba(0, 153, 64, 0.25);
}

body.light-theme .logo span,
body.light-theme .green,
body.light-theme .section-title p,
body.light-theme .quote,
body.light-theme .skill-card li::before {
  color: #009b3d !important;
}

body.light-theme .nav {
  background: rgba(0, 153, 64, 0.07);
  border-color: rgba(0, 153, 64, 0.20);
}

body.light-theme .nav a {
  color: #0b4a1d;
}

body.light-theme .nav a:hover,
body.light-theme .nav a:focus-visible {
  color: #008f38;
  text-shadow: 0 0 12px rgba(0, 153, 64, 0.22);
}

body.light-theme .menu-btn {
  color: #009b3d;
}

body.light-theme .tag,
body.light-theme .icon {
  color: #009b3d;
  background: rgba(0, 153, 64, 0.09);
  border-color: rgba(0, 153, 64, 0.22);
}

body.light-theme .hero h2 {
  color: #14612a;
}

body.light-theme .description,
body.light-theme .about-card,
body.light-theme .skill-card li,
body.light-theme .contact p {
  color: #315f3b;
}

body.light-theme .about-card,
body.light-theme .skill-card,
body.light-theme .contact {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 153, 64, 0.18);
  box-shadow: 0 20px 70px rgba(0, 120, 50, 0.10);
}

body.light-theme .skill-card:hover {
  border-color: rgba(0, 153, 64, 0.45);
}

body.light-theme .skill-card h3,
body.light-theme .contact h2,
body.light-theme .section-title h2,
body.light-theme .hero h1 {
  color: #053b16;
}

body.light-theme .btn.primary {
  background: #009b3d;
  border-color: #009b3d;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 153, 64, 0.22);
}

body.light-theme .btn.secondary {
  color: #009b3d;
  border-color: #009b3d;
}

body.light-theme .photo-card img {
  box-shadow: 0 25px 80px rgba(0, 120, 50, 0.16);
}

body.light-theme .photo-border {
  border-color: #009b3d;
  box-shadow: 0 0 45px rgba(0, 153, 64, 0.22);
}

body.light-theme footer {
  color: #4f7558;
  border-top-color: rgba(0, 153, 64, 0.18);
}

body.light-theme .theme-toggle {
  background: #ffffff;
  color: #009b3d;
  border-color: rgba(0, 153, 64, 0.38);
  box-shadow: 0 0 30px rgba(0, 153, 64, 0.22);
}

@media (max-width: 850px) {
  body.light-theme .nav {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 153, 64, 0.26);
  }
}


.language-switcher {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 100;
}

.language-toggle {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 106, 0.55);
  border-radius: 50%;
  background: rgba(5, 8, 5, 0.88);
  color: #00ff6a;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0, 255, 106, 0.28);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.language-toggle:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 42px rgba(0, 255, 106, 0.42);
}

.language-options {
  position: absolute;
  left: 0;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
  transition: 0.3s ease;
}

.language-options.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.language-options button {
  min-width: 58px;
  height: 42px;
  border: 1px solid rgba(0, 255, 106, 0.45);
  border-radius: 999px;
  background: rgba(5, 8, 5, 0.92);
  color: #00ff6a;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 255, 106, 0.20);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
}

.language-options button:hover,
.language-options button.active {
  background: #00ff6a;
  color: #031006;
  transform: translateX(4px);
  box-shadow: 0 0 32px rgba(0, 255, 106, 0.38);
}

body.light-theme .language-toggle,
body.light-theme .language-options button {
  background: #ffffff;
  color: #009b3d;
  border-color: rgba(0, 153, 64, 0.38);
  box-shadow: 0 0 30px rgba(0, 153, 64, 0.22);
}

body.light-theme .language-options button:hover,
body.light-theme .language-options button.active {
  background: #009b3d;
  color: #ffffff;
  box-shadow: 0 0 32px rgba(0, 153, 64, 0.30);
}

@media (max-width: 850px) {
  .theme-toggle,
  .language-toggle {
    width: 52px;
    height: 52px;
  }

  .theme-toggle {
    right: 18px;
    bottom: 18px;
  }

  .language-switcher {
    left: 18px;
    bottom: 18px;
  }

  .language-options {
    bottom: 62px;
  }
}
